]> git.sur5r.net Git - openldap/commitdiff
Allow null dn.
authorKurt Zeilenga <kurt@openldap.org>
Fri, 13 Aug 1999 22:53:11 +0000 (22:53 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Fri, 13 Aug 1999 22:53:11 +0000 (22:53 +0000)
clients/tools/ldapmodify.c

index e6c13d80dda6b27887a635b58d1ae1c33cf896ed..e58dc3c695d030d9b9eddbbc8c37726e71000d3d 100644 (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 );
                }