ITS#8677 back-sock: return error for CONTINUE

instead of asserting
This commit is contained in:
Howard Chu 2023-11-02 17:53:16 +00:00 committed by Quanah Gibson-Mount
parent 64789dd2c7
commit 66edd34594

View file

@ -81,7 +81,11 @@ sock_read_and_send_results(
if ( strncasecmp( line, "CONTINUE", 8 ) == 0 ) {
struct sockinfo *si = (struct sockinfo *) op->o_bd->be_private;
/* Only valid when operating as an overlay! */
assert( si->si_ops != 0 );
if ( !si->si_ops ) {
rs->sr_err = LDAP_OTHER;
rs->sr_text = "CONTINUE is only valid when operating as an overlay";
goto fail;
}
rs->sr_err = SLAP_CB_CONTINUE;
goto skip;
}