From f5c2ba7c3ebbc26d8a92a2da782472754af773e0 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Wed, 1 Sep 1999 05:28:29 +0000 Subject: [PATCH] Fix last commit. Should not have deleted assignment to p away. --- libraries/libldap/getdn.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libraries/libldap/getdn.c b/libraries/libldap/getdn.c index cf0af94749..96a28a5a6e 100644 --- a/libraries/libldap/getdn.c +++ b/libraries/libldap/getdn.c @@ -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 -- 2.39.5