Coverity error

This commit is contained in:
Howard Chu 2007-02-13 11:03:41 +00:00
parent aa19286296
commit ab2a55d222
2 changed files with 3 additions and 5 deletions

View File

@ -281,7 +281,7 @@ load_extop2(
LDAP_SUCCESS )
{
oidm.bv_val = oidm_find( ext_oid->bv_val );
if ( ext_oid == NULL ) {
if ( oidm.bv_val == NULL ) {
return -1;
}
oidm.bv_len = strlen( oidm.bv_val );

View File

@ -1628,13 +1628,11 @@ syncrepl_message_to_entry(
if ( syncstate == LDAP_SYNC_PRESENT || syncstate == LDAP_SYNC_DELETE ) {
/* NOTE: this could be done even before decoding the DN,
* although encoding errors wouldn't be detected */
rc = LDAP_SUCCESS;
goto done;
return LDAP_SUCCESS;
}
if ( entry == NULL ) {
rc = -1;
goto done;
return -1;
}
dnPrettyNormal( NULL, &bdn, &dn, &ndn, op->o_tmpmemctx );