]> git.sur5r.net Git - openldap/commitdiff
Fix crasher in slapi_over_unmerge_controls() (if called from cleanup handler
authorLuke Howard <lukeh@openldap.org>
Sat, 24 Dec 2005 09:20:06 +0000 (09:20 +0000)
committerLuke Howard <lukeh@openldap.org>
Sat, 24 Dec 2005 09:20:06 +0000 (09:20 +0000)
where merge controls was not called)

servers/slapd/slapi/slapi_overlay.c

index 48c6d9bc14d0fe325edb5911acdeeaaf2308d0cc..80179429f899178f70ae83ac952061532bdbe9fd 100644 (file)
@@ -478,7 +478,7 @@ slapi_over_unmerge_controls( Operation *op, SlapReply *rs )
 
        slapi_pblock_get( pb, SLAPI_X_OLD_RESCONTROLS, (void **)&rs_ctrls );
 
-       if ( rs->sr_ctrls == NULL || rs->sr_ctrls == rs_ctrls ) {
+       if ( rs_ctrls == NULL || rs->sr_ctrls == rs_ctrls ) {
                /* no copying done */
                return LDAP_SUCCESS;
        }