summaryrefslogtreecommitdiff
path: root/source4/utils/net/net.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-04-16 22:30:15 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-04-16 22:30:15 +0200
commita5d52174bd993b32d01d26a795a56df4a92eba45 (patch)
treed87a3e1eab33c194a4746e978324a24c31806834 /source4/utils/net/net.c
parentb815b81fb09f770fcacc7e06e82b9ec5f5992fdb (diff)
downloadsamba-a5d52174bd993b32d01d26a795a56df4a92eba45.tar.gz
samba-a5d52174bd993b32d01d26a795a56df4a92eba45.tar.bz2
samba-a5d52174bd993b32d01d26a795a56df4a92eba45.zip
Avoid event_find_context() when the event context is already available
in the net utility. (This used to be commit d40804777edf41889bd461f63f7a07cc1cc60e27)
Diffstat (limited to 'source4/utils/net/net.c')
-rw-r--r--source4/utils/net/net.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/utils/net/net.c b/source4/utils/net/net.c
index 6086a4ce32..ab81f07225 100644
--- a/source4/utils/net/net.c
+++ b/source4/utils/net/net.c
@@ -199,6 +199,7 @@ static int binary_net(int argc, const char **argv)
ZERO_STRUCTP(ctx);
ctx->lp_ctx = cmdline_lp_ctx;
ctx->credentials = cmdline_credentials;
+ ctx->event_ctx = ev;
cli_credentials_set_event_context(ctx->credentials, ev);
rc = net_run_function(ctx, argc_new-1, argv_new+1, net_functable, net_usage);