summaryrefslogtreecommitdiff
path: root/source4/torture/local/socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/torture/local/socket.c')
-rw-r--r--source4/torture/local/socket.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/torture/local/socket.c b/source4/torture/local/socket.c
index 3b4707b06a..8f8e10b3c5 100644
--- a/source4/torture/local/socket.c
+++ b/source4/torture/local/socket.c
@@ -22,6 +22,7 @@
#include "includes.h"
#include "lib/socket/socket.h"
+#include "lib/events/events.h"
#define CHECK_STATUS(status, correct) do { \
if (!NT_STATUS_EQUAL(status, correct)) { \
@@ -139,6 +140,7 @@ static BOOL test_tcp(TALLOC_CTX *mem_ctx)
DATA_BLOB blob, blob2;
size_t sent, nread;
BOOL ret = True;
+ struct event_context *ev = event_context_init(mem_ctx);
printf("TESTING TCP SOCKETS\n");
@@ -162,7 +164,7 @@ static BOOL test_tcp(TALLOC_CTX *mem_ctx)
srv_port = socket_get_my_port(sock1);
printf("server port is %d\n", srv_port);
- status = socket_connect(sock2, NULL, 0, srv_addr, srv_port, 0);
+ status = socket_connect_ev(sock2, NULL, 0, srv_addr, srv_port, 0, ev);
CHECK_STATUS(status, NT_STATUS_OK);
status = socket_accept(sock1, &sock3);