Allow null dn.

This commit is contained in:
Kurt Zeilenga 1999-08-13 22:53:11 +00:00
parent 5007e92278
commit a3269d3625

View File

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