From: Kurt Zeilenga Date: Fri, 13 Aug 1999 22:53:11 +0000 (+0000) Subject: Allow null dn. X-Git-Tag: TWEB_OL_BASE~223 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a3269d36258af5fd0eb0a9605654b8208ded0693;p=openldap Allow null dn. --- diff --git a/clients/tools/ldapmodify.c b/clients/tools/ldapmodify.c index e6c13d80dd..e58dc3c695 100644 --- a/clients/tools/ldapmodify.c +++ b/clients/tools/ldapmodify.c @@ -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 ); }