Skip to content
Snippets Groups Projects
Commit ab2a55d2 authored by Howard Chu's avatar Howard Chu
Browse files

Coverity error

parent aa192862
No related branches found
No related tags found
No related merge requests found
......@@ -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 );
......
......@@ -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 );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment