mirror of
https://github.com/nmap/nmap.git
synced 2026-01-16 19:39:03 +00:00
merge soc07 r5049 - Print a more useful error message if an attempt is made to compare two unknown fingerprint tests.
This commit is contained in:
@@ -1740,8 +1740,10 @@ static bool FingerTest_lessthan(const FingerTest* a, const FingerTest* b) {
|
||||
return false;
|
||||
}
|
||||
|
||||
/* This shouldn't happen. */
|
||||
assert(false);
|
||||
/* If neither test name was recognized, it probably indicates an error in
|
||||
another part of the code. */
|
||||
fatal("%s received two unknown test lines \"%s\" and \"%s\".\n", __func__,
|
||||
a->name, b->name);
|
||||
|
||||
/* If neither was in the ordering list, just compare their names. */
|
||||
return strcmp(a->name, b->name);
|
||||
|
||||
Reference in New Issue
Block a user