]> git.ipfire.org Git - thirdparty/bind9.git/commit
TLS: check for sock->recv_cb when handling received data
authorArtem Boldariev <artem@boldariev.com>
Tue, 22 Nov 2022 13:11:57 +0000 (15:11 +0200)
committerArtem Boldariev <artem@boldariev.com>
Fri, 2 Dec 2022 11:20:37 +0000 (13:20 +0200)
commitbed5e2bb08ae04fba119cffe8dd2e3c32f96e8fa
tree241a7b6a994a41dafc3a26409390df43962f98bb
parent69db33e7a59e3cdcf3fb74c81002590655689c76
TLS: check for sock->recv_cb when handling received data

This commit adds a check if 'sock->recv_cb' might have been nullified
during the call to 'sock->recv_cb'. That could happen, e.g. by an
indirect call to 'isc_nmhandle_close()' from within the callback when
wrapping up.

In this case, let's close the TLS connection.
lib/isc/netmgr/tlsstream.c