Skip to content

Commit 30e1b00

Browse files
author
=
committed
combination of rcascan and w is not allowed
1 parent 0c983e2 commit 30e1b00

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

hcxdumptool.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5392,6 +5392,11 @@ while((auswahl = getopt_long(argc, argv, short_options, long_options, &index)) !
53925392

53935393
case HCX_PCAPNGNAME:
53945394
pcapngoutname = optarg;
5395+
if(rcascanmode != 0)
5396+
{
5397+
fprintf(stderr, "combination of --rcascan and -w is not allowed\n");
5398+
exit(EXIT_FAILURE);
5399+
}
53955400
break;
53965401

53975402
case HCX_SET_SCANLIST_FROM_INTERFACE:
@@ -5579,6 +5584,12 @@ while((auswahl = getopt_long(argc, argv, short_options, long_options, &index)) !
55795584
fprintf(stderr, "only (a)ctive or (p)assive is allowed\n");
55805585
exit(EXIT_FAILURE);
55815586
}
5587+
if(pcapngoutname != NULL)
5588+
{
5589+
fprintf(stderr, "combination of --rcascan and -w is not allowed\n");
5590+
exit(EXIT_FAILURE);
5591+
}
5592+
55825593
break;
55835594

55845595
case HCX_HELP:

0 commit comments

Comments
 (0)