mirror of
https://github.com/nmap/nmap.git
synced 2025-12-07 05:01:29 +00:00
merge soc07 r5069:5072 - Fix for character case bug in wildtest found by David; Nicer error message for anyone dumb enough to use negative frequency values.
This commit is contained in:
4
utils.cc
4
utils.cc
@@ -128,8 +128,8 @@ int wildtest(char *wild, char *test) {
|
||||
if (wild[1] == '\0') return 1;
|
||||
|
||||
for(i=0; test[i]!='\0'; i++)
|
||||
if ((wild[1] == test[i] || wild[1] == '?')
|
||||
&& wildtest(wild+1, test+i) == 1) return 1;
|
||||
if ((tolower((int)wild[1]) == tolower((int)test[i]) || wild[1] == '?')
|
||||
&& wildtest(wild+1, test+i) == 1) return 1;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user