From a3269d36258af5fd0eb0a9605654b8208ded0693 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Fri, 13 Aug 1999 22:53:11 +0000 Subject: [PATCH] Allow null dn. --- clients/tools/ldapmodify.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); } -- 2.39.5