]> git.ipfire.org Git - thirdparty/bind9.git/commit
Don't continue opening a new rndc connection if we are shutting down
authorOndřej Surý <ondrej@isc.org>
Tue, 23 Jun 2020 11:02:21 +0000 (13:02 +0200)
committerOndřej Surý <ondrej@isc.org>
Wed, 1 Jul 2020 06:44:56 +0000 (08:44 +0200)
commitbe6cc53ec27e4549bf166d2161bacce688151e79
tree0ce9ad7c43faebd8107089f69aaa8516ed918ac3
parent402e16546dd6b5afaf8a1886f3d726fa4cd5ae0f
Don't continue opening a new rndc connection if we are shutting down

Due to lack of synchronization, whenever named was being requested to
stop using rndc, controlconf.c module could be trying to access an already
released pointer through named_g_server->interfacemgr in a separate
thread.

The race could only be triggered if named was being shutdown and more
rndc connections were ocurring at the same time.

This fix correctly checks if the server is shutting down before opening
a new rndc connection.
bin/named/controlconf.c