s4:torture/smb2: use tctx->ev as event context for polling
[ira/wip.git] / source4 / torture / smb2 / lock.c
index aee82929c1fa2356bf92050466f6005e673bf1e3..3691830ce4758963a2ad0a899ee792fb1af69fc0 100644 (file)
@@ -62,7 +62,7 @@
 
 #define WAIT_FOR_ASYNC_RESPONSE(req) \
        while (!req->cancel.can_cancel && req->state <= SMB2_REQUEST_RECV) { \
-               if (tevent_loop_once(req->transport->socket->event.ctx) != 0) { \
+               if (tevent_loop_once(torture->ev) != 0) { \
                        break; \
                } \
        }