From 9c8662b25e16e51a7d2dc5fba9328eccb8c08a32 Mon Sep 17 00:00:00 2001 From: bol-van Date: Sat, 23 Nov 2024 14:14:12 +0300 Subject: [PATCH] nfqws,tpws: fix crash --- nfq/nfqws.c | 2 +- tpws/tpws.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nfq/nfqws.c b/nfq/nfqws.c index 21b3c98..f4805fe 100644 --- a/nfq/nfqws.c +++ b/nfq/nfqws.c @@ -1994,8 +1994,8 @@ int main(int argc, char **argv) } if (bSkip) { - dp_entry_destroy(dpl); LIST_REMOVE(dpl,next); + dp_entry_destroy(dpl); desync_profile_count--; } diff --git a/tpws/tpws.c b/tpws/tpws.c index 6e31566..5e9244a 100644 --- a/tpws/tpws.c +++ b/tpws/tpws.c @@ -1284,8 +1284,8 @@ void parse_params(int argc, char *argv[]) } if (bSkip) { - dp_entry_destroy(dpl); LIST_REMOVE(dpl,next); + dp_entry_destroy(dpl); desync_profile_count--; }