ITS#5065 don't crash if old cookieCSN is sent

This commit is contained in:
Howard Chu 2007-08-10 22:52:04 +00:00
parent e4a7d8ad77
commit 856bf9bd48

View File

@ -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 );