check ber_scanf(syncUUIDs) result (coverity)

This commit is contained in:
Howard Chu 2015-01-14 10:13:16 +00:00
parent 14a3efa48a
commit 0e66a3d1bf

View file

@ -1297,8 +1297,9 @@ do_syncrep2(
ber_scanf( ber, "b", &refreshDeletes );
}
syncUUIDs = NULL;
ber_scanf( ber, "[W]", &syncUUIDs );
rc = ber_scanf( ber, "[W]", &syncUUIDs );
ber_scanf( ber, /*"{"*/ "}" );
if ( rc != LBER_ERROR ) {
if ( refreshDeletes ) {
syncrepl_del_nonpresent( op, si, syncUUIDs,
&syncCookie, m );
@ -1311,6 +1312,7 @@ do_syncrep2(
}
slap_sl_free( syncUUIDs, op->o_tmpmemctx );
}
}
slap_sync_cookie_free( &syncCookie, 0 );
break;
default: