From 479ba87fc53035d04b3f7e2784ea489e5c0e99cf Mon Sep 17 00:00:00 2001 From: bol-van Date: Sun, 27 Mar 2022 10:40:09 +0300 Subject: [PATCH] nfqws: cosmetics --- nfq/nfqws.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nfq/nfqws.c b/nfq/nfqws.c index 4c20ee1..109c58c 100644 --- a/nfq/nfqws.c +++ b/nfq/nfqws.c @@ -889,7 +889,7 @@ int main(int argc, char **argv) #endif break; case 20: /* dpi-desync-repeats */ - if (sscanf(optarg,"%u",¶ms.desync_repeats)<1 || params.desync_repeats<=0 || params.desync_repeats>20) + if (sscanf(optarg,"%u",¶ms.desync_repeats)<1 || !params.desync_repeats || params.desync_repeats>20) { fprintf(stderr, "dpi-desync-repeats must be within 1..20\n"); exit_clean(1);