nfqws: cosmetics

This commit is contained in:
bol-van 2022-03-27 10:40:09 +03:00
parent ad5588ebf1
commit 479ba87fc5

View File

@ -889,7 +889,7 @@ int main(int argc, char **argv)
#endif
break;
case 20: /* dpi-desync-repeats */
if (sscanf(optarg,"%u",&params.desync_repeats)<1 || params.desync_repeats<=0 || params.desync_repeats>20)
if (sscanf(optarg,"%u",&params.desync_repeats)<1 || !params.desync_repeats || params.desync_repeats>20)
{
fprintf(stderr, "dpi-desync-repeats must be within 1..20\n");
exit_clean(1);