Fix dnParent: must always return a pointer relative to the input pointer.

This commit is contained in:
Howard Chu 2002-05-08 23:04:11 +00:00
parent 41c5a36376
commit 9ba9ac4d9e

View File

@ -624,7 +624,8 @@ dnParent(
/* one-level dn */
if ( p == NULL ) {
*pdn = slap_empty_bv;
pdn->bv_len = 0;
pdn->bv_val = dn->bv_val + dn->bv_len;
return;
}