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:
@@ -694,8 +694,7 @@ 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;
|
||||||
}
|
}
|
||||||
if (p < end) {
|
if (p < end) {
|
||||||
|
|||||||
Reference in New Issue
Block a user