From 0715e29ae5a33f199a37db54302d2d35ff9e1664 Mon Sep 17 00:00:00 2001 From: Mark Valence Date: Fri, 9 Jun 2000 06:45:14 +0000 Subject: [PATCH] Fix uninitialized var bug. --- libraries/libldap/getdn.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/libldap/getdn.c b/libraries/libldap/getdn.c index 20f1882cf5..0d8b488e19 100644 --- a/libraries/libldap/getdn.c +++ b/libraries/libldap/getdn.c @@ -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; -- 2.39.5