From: Pierangelo Masarati Date: Fri, 28 Dec 2001 15:13:16 +0000 (+0000) Subject: more exploitation of efficient parsing X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~429 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=cd8eb327d6487643a2d2b0cd6f042ae35f85d18e;p=openldap more exploitation of efficient parsing --- diff --git a/servers/slapd/dn.c b/servers/slapd/dn.c index eed563e950..b87283fd0b 100644 --- a/servers/slapd/dn.c +++ b/servers/slapd/dn.c @@ -620,15 +620,13 @@ dnParent( const char *dn, const char **pdn ) { - LDAPRDN *tmpRDN; const char *p; int rc; - rc = ldap_str2rdn( dn, &tmpRDN, &p, LDAP_DN_FORMAT_LDAP ); + rc = ldap_str2rdn( dn, NULL, &p, LDAP_DN_FORMAT_LDAP | LDAP_DN_SKIP ); if ( rc != LDAP_SUCCESS ) { return rc; } - ldap_rdnfree( tmpRDN ); assert( DN_SEPARATOR( p[ 0 ] ) ); p++; @@ -715,7 +713,7 @@ dn_rdnlen( struct berval *dn_in ) { int rc; - char *p; + const char *p; assert( dn_in );