do not allow types > 3
@@ -2332,7 +2332,7 @@ while((auswahl = getopt_long (argc, argv, short_options, long_options, &index))
case HCX_HASH_TYPE:
hashtypein |= strtol(optarg, NULL, 10);
- if((hashtypein < HCX_TYPE_PMKID) || (hashtypein < HCX_TYPE_EAPOL))
+ if((hashtypein < HCX_TYPE_PMKID) || (hashtypein > (HCX_TYPE_PMKID + HCX_TYPE_EAPOL)))
{
fprintf(stderr, "only hash types 1 and 2 allowed\n");
exit(EXIT_FAILURE);
