]> git.sur5r.net Git - openldap/commitdiff
Fix uninitialized var bug.
authorMark Valence <mrv@openldap.org>
Fri, 9 Jun 2000 06:45:14 +0000 (06:45 +0000)
committerMark Valence <mrv@openldap.org>
Fri, 9 Jun 2000 06:45:14 +0000 (06:45 +0000)
libraries/libldap/getdn.c

index 20f1882cf5f09ce83cec07a1b125ba5db72ce32e..0d8b488e19ac18c35e24fba7a0161fb22cd04322 100644 (file)
@@ -63,6 +63,9 @@ ldap_dn2ufn( LDAP_CONST char *dn )
                return NULL;
        }
 
+       if ( ( p = ldap_utf8_strpbrk( dn, "=" ) ) == NULL ) {
+               return( LDAP_STRDUP( dn ) );
+       }
        ufn = LDAP_STRDUP( ++p );
 
        if( ufn == NULL ) return NULL;