From 03152ba76f36403525a84889cc1e08c257d8e2f2 Mon Sep 17 00:00:00 2001 From: bol-van Date: Thu, 8 Jan 2026 11:45:38 +0300 Subject: [PATCH] nfqws2: move rawsend_cleanup --- nfq2/nfqws.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nfq2/nfqws.c b/nfq2/nfqws.c index 8706ec7..edb52e2 100644 --- a/nfq2/nfqws.c +++ b/nfq2/nfqws.c @@ -377,6 +377,7 @@ ex: #ifdef HAS_FILTER_SSID wlan_info_deinit(); #endif + rawsend_cleanup(); return res; err: if (Fpid) fclose(Fpid); @@ -576,6 +577,7 @@ exiterr: if (fd[0] != -1) close(fd[0]); if (fd[1] != -1) close(fd[1]); lua_shutdown(); + rawsend_cleanup(); return res; } @@ -660,7 +662,6 @@ static int win_main() else if (errno == ENODEV) { DLOG_CONDUP("logical network disappeared. deinitializing windivert.\n"); - rawsend_cleanup(); break; } else if (errno == EINTR) @@ -711,6 +712,7 @@ static int win_main() ex: win_dark_deinit(); lua_shutdown(); + rawsend_cleanup(); return res; } @@ -2689,7 +2691,6 @@ int main(int argc, char **argv) #error unsupported OS #endif ex: - rawsend_cleanup(); cleanup_params(¶ms); #ifdef __CYGWIN__ if (hMutexArg)