mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
don't leak in case of attribute not found
This commit is contained in:
parent
2e36d49a73
commit
eae2233d0c
@ -226,12 +226,12 @@ slapi_entry_attr_merge(
|
||||
BerVarray bv;
|
||||
int rc;
|
||||
|
||||
rc = bvptr2obj( vals, &bv );
|
||||
rc = slap_str2ad( type, &ad, &text );
|
||||
if ( rc != LDAP_SUCCESS ) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
rc = slap_str2ad( type, &ad, &text );
|
||||
rc = bvptr2obj( vals, &bv );
|
||||
if ( rc != LDAP_SUCCESS ) {
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user