]> git.sur5r.net Git - openldap/commitdiff
ITS#8303 Fixed an assertion error during test022
authorNadezhda Ivanova <nivanova@symas.com>
Tue, 9 Feb 2016 13:26:38 +0000 (15:26 +0200)
committerHoward Chu <hyc@openldap.org>
Mon, 29 Feb 2016 17:08:51 +0000 (17:08 +0000)
The error was introduced with
commit 6cafdfa8d82134f78e68325c4b9c10dd37935d7a

servers/slapd/backover.c

index c76b9d48e7f646757c1aec39e0e82a43e9668be0..c94b67cbc8ae6283c1b95fd58641a1611dd979e8 100644 (file)
@@ -255,21 +255,6 @@ over_back_response ( Operation *op, SlapReply *rs )
        return rc;
 }
 
-static int
-over_back_response_cleanup(Operation *op, SlapReply *rs)
-{
-    if (rs->sr_type == REP_RESULT) {
-        if (op->o_callback != NULL) {
-            slap_callback *sc = op->o_callback;
-            op->o_callback = sc->sc_next;
-
-            free( sc );
-        }
-    }
-
-    return 0;
-}
-
 static int
 over_access_allowed(
        Operation               *op,
@@ -758,7 +743,7 @@ over_op_func(
                db.be_flags |= SLAP_DBFLAG_OVERLAY;
                op->o_bd = &db;
        }
-       cb->sc_cleanup = over_back_response_cleanup;
+       cb->sc_cleanup = NULL;
        cb->sc_response = over_back_response;
        cb->sc_writewait = NULL;
        cb->sc_next = op->o_callback;