winws: return win32 error code on windivert recv failure

This commit is contained in:
bol-van 2024-05-01 20:05:31 +03:00
parent a145fe73fe
commit 1e8e46c14f

View File

@ -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);