From 1e8e46c14f437d02458c6216114ff545b65fa8ee Mon Sep 17 00:00:00 2001 From: bol-van Date: Wed, 1 May 2024 20:05:31 +0300 Subject: [PATCH] winws: return win32 error code on windivert recv failure --- nfq/nfqws.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nfq/nfqws.c b/nfq/nfqws.c index 45aead4..df79c6c 100644 --- a/nfq/nfqws.c +++ b/nfq/nfqws.c @@ -433,7 +433,7 @@ static int win_main(const char *windivert_filter) break; } fprintf(stderr, "windivert: recv failed. errno %d\n", errno); - break; + return w_win32_error; } *ifout=0; if (wa.Outbound) snprintf(ifout,sizeof(ifout),"%u.%u", wa.Network.IfIdx, wa.Network.SubIfIdx);