Skip to content

TLS: check for sock->recv_cb when handling received data

Artem Boldariev requested to merge artem-tls-check-for-recv_cb-v9-18 into v9_18

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.

(Backport of !7158 (merged) - not to fix an issue, but rather an additional safety belt)

Merge request reports