]> git.sur5r.net Git - openldap/commitdiff
Fix last commit. Should not have deleted assignment to p away.
authorKurt Zeilenga <kurt@openldap.org>
Wed, 1 Sep 1999 05:28:29 +0000 (05:28 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 1 Sep 1999 05:28:29 +0000 (05:28 +0000)
libraries/libldap/getdn.c

index cf0af9474961de4050db2766025e931f05a99214..96a28a5a6e13e0de0396f235964cece54b55ea1d 100644 (file)
@@ -58,10 +58,13 @@ ldap_dn2ufn( LDAP_CONST char *dn )
                return NULL;
        }
 
-       if ( ldap_is_dns_dn( dn ) ) {
+       if ( ldap_is_dns_dn( dn ) ||
+               ( p = strchr( dn, '=' ) ) == NULL )
+       {
                return( LDAP_STRDUP( dn ) );
        }
 
+
        ufn = LDAP_STRDUP( ++p );
 
 #define INQUOTE                1