r22969: fix some more places where we could end up with more than one event
[jelmer/samba4-debian.git] / source / torture / util_smb.c
index 4cadbe20fee5e51b0da371dc6f6ff0fa6da98d9b..23b98fc7b6d004d7b63e37e744ff5139ce8a1e23 100644 (file)
@@ -31,6 +31,7 @@
 #include "torture/ui.h"
 #include "torture/torture.h"
 #include "util/dlinklist.h"
+#include "auth/credentials/credentials.h"
 
 
 /**
@@ -541,7 +542,8 @@ _PUBLIC_ bool torture_open_connection_ev(struct smbcli_state **c,
 
 _PUBLIC_ bool torture_open_connection(struct smbcli_state **c, int conn_index)
 {
-       return torture_open_connection_ev(c, conn_index, NULL);
+       return torture_open_connection_ev(c, conn_index, 
+                                         cli_credentials_get_event_context(cmdline_credentials));
 }