mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Coverity error
This commit is contained in:
parent
aa19286296
commit
ab2a55d222
@ -281,7 +281,7 @@ load_extop2(
|
|||||||
LDAP_SUCCESS )
|
LDAP_SUCCESS )
|
||||||
{
|
{
|
||||||
oidm.bv_val = oidm_find( ext_oid->bv_val );
|
oidm.bv_val = oidm_find( ext_oid->bv_val );
|
||||||
if ( ext_oid == NULL ) {
|
if ( oidm.bv_val == NULL ) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
oidm.bv_len = strlen( oidm.bv_val );
|
oidm.bv_len = strlen( oidm.bv_val );
|
||||||
|
@ -1628,13 +1628,11 @@ syncrepl_message_to_entry(
|
|||||||
if ( syncstate == LDAP_SYNC_PRESENT || syncstate == LDAP_SYNC_DELETE ) {
|
if ( syncstate == LDAP_SYNC_PRESENT || syncstate == LDAP_SYNC_DELETE ) {
|
||||||
/* NOTE: this could be done even before decoding the DN,
|
/* NOTE: this could be done even before decoding the DN,
|
||||||
* although encoding errors wouldn't be detected */
|
* although encoding errors wouldn't be detected */
|
||||||
rc = LDAP_SUCCESS;
|
return LDAP_SUCCESS;
|
||||||
goto done;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( entry == NULL ) {
|
if ( entry == NULL ) {
|
||||||
rc = -1;
|
return -1;
|
||||||
goto done;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
dnPrettyNormal( NULL, &bdn, &dn, &ndn, op->o_tmpmemctx );
|
dnPrettyNormal( NULL, &bdn, &dn, &ndn, op->o_tmpmemctx );
|
||||||
|
Loading…
Reference in New Issue
Block a user