mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-15 03:01:09 +08:00
Allow null dn.
This commit is contained in:
parent
5007e92278
commit
a3269d3625
@ -403,7 +403,7 @@ process_ldif_rec( char *rbuf, int count )
|
||||
version++;
|
||||
|
||||
} else if ( strcasecmp( type, T_DN_STR ) == 0 ) {
|
||||
if (( dn = strdup( value )) == NULL ) {
|
||||
if (( dn = strdup( value ? value : "" )) == NULL ) {
|
||||
perror( "strdup" );
|
||||
exit( EXIT_FAILURE );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user