Remove more event_context_init() uses from function calls within deep down the code.
[jelmer/samba4.git] / source / torture / basic / base.c
index 3a3a7c2fd5998ce028b2bdd92f18ee6a11eb90ca..966d436935ba57fe1ed333cb6b1bc97ff14dc665 100644 (file)
@@ -55,7 +55,8 @@ static struct smbcli_state *open_nbt_connection(struct torture_context *tctx)
 
        lp_smbcli_options(tctx->lp_ctx, &options);
 
-       if (!smbcli_socket_connect(cli, host, lp_smb_ports(tctx->lp_ctx), lp_resolve_context(tctx->lp_ctx), &options)) {
+       if (!smbcli_socket_connect(cli, host, lp_smb_ports(tctx->lp_ctx), tctx->ev,
+                                  lp_resolve_context(tctx->lp_ctx), &options)) {
                torture_comment(tctx, "Failed to connect with %s\n", host);
                goto failed;
        }