Skip to content
Snippets Groups Projects
Commit 9ba9ac4d authored by Howard Chu's avatar Howard Chu
Browse files

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

parent 41c5a363
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment