mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
ITS#4977 check for cookie parse failure
This commit is contained in:
parent
abfbcadd6e
commit
9227293e8d
1 changed files with 2 additions and 2 deletions
|
|
@ -2785,8 +2785,8 @@ static int syncprov_parseCtrl (
|
|||
sr->sr_rhint = rhint;
|
||||
if (!BER_BVISNULL(&cookie)) {
|
||||
ber_dupbv_x( &sr->sr_state.octet_str, &cookie, op->o_tmpmemctx );
|
||||
slap_parse_sync_cookie( &sr->sr_state, op->o_tmpmemctx );
|
||||
if ( sr->sr_state.rid == -1 ) {
|
||||
if ( slap_parse_sync_cookie( &sr->sr_state, op->o_tmpmemctx ) ||
|
||||
sr->sr_state.rid == -1 ) {
|
||||
rs->sr_text = "Sync control : cookie parsing error";
|
||||
return LDAP_PROTOCOL_ERROR;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue