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

ITS#3657 added missing check

parent c0542eca
No related branches found
No related tags found
No related merge requests found
......@@ -403,8 +403,13 @@ retry: /* transaction retry */
np_dn = op->oq_modrdn.rs_newSup;
np_ndn = op->oq_modrdn.rs_nnewSup;
/* newSuperior == oldParent?, if so ==> ERROR */
/* newSuperior == oldParent? - checked above */
/* newSuperior == entry being moved?, if so ==> ERROR */
if ( dnIsSuffix( np_ndn, &e->e_nname )) {
rs->sr_err = LDAP_NAMING_VIOLATION;
rs->sr_text = "new superior is invalid";
goto return_results;
}
/* Get Entry with dn=newSuperior. Does newSuperior exist? */
rs->sr_err = bdb_dn2entry( op, ltid, np_ndn,
......
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