ITS#10258 slapd: fix unbind/close race

Don't call slapd_set_read() on an Unbinding connection
This commit is contained in:
Howard Chu 2025-12-15 15:15:34 +00:00 committed by Quanah Gibson-Mount
parent c79a8ea61b
commit ab4f4bcf5c

View file

@ -1493,7 +1493,8 @@ connection_read( ber_socket_t s, conn_readinfo *cri )
slapd_set_write( s, 0 );
}
slapd_set_read( s, 1 );
if ( !cri->op || cri->op->o_tag != LDAP_REQ_UNBIND )
slapd_set_read( s, 1 );
connection_return( c );
return 0;