From: Kurt Zeilenga Date: Wed, 1 Sep 1999 05:28:29 +0000 (+0000) Subject: Fix last commit. Should not have deleted assignment to p away. X-Git-Tag: TWEB_OL_BASE~56 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f5c2ba7c3ebbc26d8a92a2da782472754af773e0;p=openldap Fix last commit. Should not have deleted assignment to p away. --- 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