mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-06 15:10:22 -05:00
error if syncUUID is empty
This commit is contained in:
parent
6f9aa99d0c
commit
52db580cdb
1 changed files with 8 additions and 1 deletions
|
|
@ -691,7 +691,14 @@ do_syncrep2(
|
|||
rctrlp = *rctrls;
|
||||
ber_init2( ber, &rctrlp->ldctl_value, LBER_USE_DER );
|
||||
ber_scanf( ber, "{em" /*"}"*/, &syncstate, &syncUUID );
|
||||
/* FIXME: what if syncUUID is NULL or empty? */
|
||||
/* FIXME: what if syncUUID is NULL or empty?
|
||||
* (happens with back-sql...) */
|
||||
if ( BER_BVISEMPTY( &syncUUID ) ) {
|
||||
Debug( LDAP_DEBUG_ANY, "do_syncrep2: "
|
||||
"got empty syncUUID\n", 0, 0, 0 );
|
||||
rc = -1;
|
||||
goto done;
|
||||
}
|
||||
if ( ber_peek_tag( ber, &len ) == LDAP_TAG_SYNC_COOKIE ) {
|
||||
ber_scanf( ber, /*"{"*/ "m}", &cookie );
|
||||
if ( !BER_BVISNULL( &cookie ) ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue