[PATCH] server: Make sure that async_request_complete() is called in the case of a failed connection as well.

Zebediah Figura zfigura at codeweavers.com
Mon Sep 6 19:12:22 CDT 2021


Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51726
Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
---
 server/sock.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/sock.c b/server/sock.c
index 3c5f2612b51..6452cfb0dd7 100644
--- a/server/sock.c
+++ b/server/sock.c
@@ -2905,7 +2905,7 @@ static void poll_socket( struct sock *poll_sock, struct async *async, timeout_t
         /* FIXME: do other error conditions deserve a similar treatment? */
         if (sock->state != SOCK_CONNECTING && sock->errors[AFD_POLL_BIT_CONNECT_ERR] && (mask & AFD_POLL_CONNECT_ERR))
         {
-            req->iosb->status = STATUS_SUCCESS;
+            signaled = TRUE;
             output[i].flags |= AFD_POLL_CONNECT_ERR;
             output[i].status = sock_get_ntstatus( sock->errors[AFD_POLL_BIT_CONNECT_ERR] );
         }
-- 
2.33.0




More information about the wine-devel mailing list