From: Pierangelo Masarati Date: Fri, 1 Apr 2005 23:58:38 +0000 (+0000) Subject: clarify the usage of dnParent( dn, dn ) X-Git-Tag: OPENLDAP_AC_BP~1010 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a736b1041e40798a5da912e866fc0aa6fbd021fd;p=openldap clarify the usage of dnParent( dn, dn ) --- diff --git a/servers/slapd/dn.c b/servers/slapd/dn.c index 2e6379a2ee..5da22ac6a4 100644 --- a/servers/slapd/dn.c +++ b/servers/slapd/dn.c @@ -1097,6 +1097,10 @@ rdnMatch( * dnParent - dn's parent, in-place * note: the incoming dn is assumed to be normalized/prettyfied, * so that escaped rdn/ava separators are in '\'+hexpair form + * + * note: "dn" and "pdn" can point to the same berval; + * beware that, in this case, the pointer to the original buffer + * will get lost. */ void dnParent(