1
0
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:
fyodor
2007-08-11 04:56:38 +00:00
parent 40d3cd5e37
commit 69763672e0

View File

@@ -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);