1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 12:41:29 +00:00

Fix incorrect behavior: empty string OS test is valid

This commit is contained in:
dmiller
2022-12-15 22:43:45 +00:00
parent 37dd0969d3
commit d8cf5e6eac

View File

@@ -694,7 +694,6 @@ bool FingerTest::str2AVal(const char *str, const char *end) {
if (!q) { if (!q) {
q = end; q = end;
} }
if (p != q) // empty? use NULL
AVs[idx->second] = string_pool_substr(p, q); AVs[idx->second] = string_pool_substr(p, q);
p = q + 1; p = q + 1;
} }