mirror of
https://github.com/nmap/nmap.git
synced 2026-09-04 09:32:16 +00:00
Fix incorrect behavior: empty string OS test is valid
This commit is contained in:
parent
37dd0969d3
commit
d8cf5e6eac
1 changed files with 1 additions and 2 deletions
|
|
@ -694,8 +694,7 @@ bool FingerTest::str2AVal(const char *str, const char *end) {
|
|||
if (!q) {
|
||||
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;
|
||||
}
|
||||
if (p < end) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue