mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
ITS#5065 don't crash if old cookieCSN is sent
This commit is contained in:
parent
e4a7d8ad77
commit
856bf9bd48
@ -2586,6 +2586,11 @@ syncrepl_updateCookie(
|
||||
first = syncCookie->ctxcsn[i];
|
||||
}
|
||||
}
|
||||
/* Should never happen, ITS#5065 */
|
||||
if ( BER_BVISNULL( &first )) {
|
||||
ldap_pvt_thread_mutex_unlock( &si->si_cookieState->cs_mutex );
|
||||
return 0;
|
||||
}
|
||||
op->o_bd = si->si_wbe;
|
||||
slap_queue_csn( op, &first );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user