mirror of
https://github.com/isc-projects/bind9.git
synced 2026-03-24 19:35:00 -04:00
TCP: remove wrong INSIST(csock->recv_cb != NULL)
This commit removes wrong INSIST() condition as the assumption that if 'csock->recv_cb != NULL' iff 'csock->statichandle != NULL' is wrong. There is no direct relation between 'csock->statichandle' and 'csock->recv_cb', as 'csock->statichandle' gets set when allocating a handle regardless of 'csock->recv_cb' not being NULL, as it is possible to attach to the handle without starting a read operation (at the very least, it is correct to start writing before reading). That condition made `cipher-suites` system test fail with crash on some platforms in FIPS mode (namely, Oracle Linux 9) despite not being related to FIPS at all.
This commit is contained in:
parent
84e7e5d5df
commit
dffb11f2c0
1 changed files with 0 additions and 4 deletions
|
|
@ -914,10 +914,6 @@ accept_connection(isc_nmsocket_t *csock) {
|
|||
*/
|
||||
isc_nmhandle_detach(&handle);
|
||||
|
||||
if (csock->statichandle != NULL) {
|
||||
INSIST(csock->recv_cb != NULL);
|
||||
}
|
||||
|
||||
/*
|
||||
* sock is now attached to the handle.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue