mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-03 20:40:05 -05:00
handle failure or missing attrs
This commit is contained in:
parent
b282339c96
commit
19dc49180d
1 changed files with 6 additions and 4 deletions
|
|
@ -488,11 +488,13 @@ ldap_build_entry(
|
|||
* later, the local subschemaSubentry is
|
||||
* added.
|
||||
*/
|
||||
( void )ber_scanf( &ber, "[W]", &vals );
|
||||
for ( bv = vals; bv->bv_val; bv++ ) {
|
||||
LBER_FREE( bv->bv_val );
|
||||
if ( ber_scanf( &ber, "[W]", &vals ) != LBER_ERROR
|
||||
&& vals != NULL ) {
|
||||
for ( bv = vals; bv->bv_val; bv++ ) {
|
||||
LBER_FREE( bv->bv_val );
|
||||
}
|
||||
LBER_FREE( vals );
|
||||
}
|
||||
LBER_FREE( vals );
|
||||
|
||||
ch_free(attr);
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Reference in a new issue