summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/lib/socket/connect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/socket/connect.c b/source4/lib/socket/connect.c
index 116a8c67d8..4dc1053021 100644
--- a/source4/lib/socket/connect.c
+++ b/source4/lib/socket/connect.c
@@ -76,7 +76,7 @@ static void socket_send_connect(struct composite_context *result)
fde = event_add_fd(result->event_ctx, result,
socket_get_fd(state->sock),
- EVENT_FD_WRITE,
+ EVENT_FD_READ|EVENT_FD_WRITE,
socket_connect_handler, result);
composite_nomem(fde, result);
}