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