mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-07 15:41:24 -05:00
ITS#8677 back-sock: return error for CONTINUE
instead of asserting
This commit is contained in:
parent
64789dd2c7
commit
66edd34594
1 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue