s4:torture/libnet: remove bogus usage of p->conn->event_ctx
authorStefan Metzmacher <metze@samba.org>
Tue, 14 Jan 2014 11:27:10 +0000 (12:27 +0100)
committerGünther Deschner <gd@samba.org>
Thu, 16 Jan 2014 15:22:52 +0000 (16:22 +0100)
ctx->event_ctx and p->conn->event_ctx already have the same value
as torture->ev.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
source4/torture/libnet/libnet_domain.c

index 142b6e9f617ee77ae1fa3a617cd3181aa9cf0771..077d6a9f630c656d6e1ce339ae9623ad020c87ba 100644 (file)
@@ -218,9 +218,6 @@ bool torture_domain_close_lsa(struct torture_context *torture)
        ctx->lsa.name        = domain_name.string;
        ctx->lsa.access_mask = access_mask;
        ctx->lsa.handle      = h;
-       /* we have to use pipe's event context, otherwise the call will
-          hang indefinitely */
-       ctx->event_ctx       = p->conn->event_ctx;
 
        ZERO_STRUCT(r);
        r.in.type = DOMAIN_LSA;
@@ -348,10 +345,6 @@ bool torture_domain_close_samr(struct torture_context *torture)
        ctx->samr.access_mask = access_mask;
        ctx->samr.handle      = h;
        ctx->samr.sid         = talloc_steal(ctx, sid);
-       /* we have to use pipe's event context, otherwise the call will
-          hang indefinitely - this wouldn't be the case if pipe was opened
-          by means of libnet call */
-       ctx->event_ctx       = p->conn->event_ctx;
 
        ZERO_STRUCT(r);
        r.in.type = DOMAIN_SAMR;