s4: client: Allocate event context off struct smbclient_context *, not talloc_autofre...
authorJeremy Allison <jra@samba.org>
Thu, 11 May 2017 23:01:59 +0000 (16:01 -0700)
committerRalph Boehme <slow@samba.org>
Sat, 13 May 2017 14:50:13 +0000 (16:50 +0200)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source4/client/client.c

index 9b2115acc31da7230285da616ab5a5dee641100b..e04aa25d69bb2e04c02fe7b6ee41110bd163a911 100644 (file)
@@ -3415,7 +3415,7 @@ static int do_message_op(const char *netbios_name, const char *desthost,
        lpcfg_smbcli_options(cmdline_lp_ctx, &smb_options);
        lpcfg_smbcli_session_options(cmdline_lp_ctx, &smb_session_options);
 
-       ev_ctx = s4_event_context_init(talloc_autofree_context());
+       ev_ctx = s4_event_context_init(ctx);
 
        DEBUG( 3, ( "Client started (version %s).\n", SAMBA_VERSION_STRING ) );