From d8cf5e6eacf709f5accdd857e79573bc35c8428c Mon Sep 17 00:00:00 2001 From: dmiller Date: Thu, 15 Dec 2022 22:43:45 +0000 Subject: [PATCH] Fix incorrect behavior: empty string OS test is valid --- osscan.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/osscan.cc b/osscan.cc index 9bd669258..9d3ae8f72 100644 --- a/osscan.cc +++ b/osscan.cc @@ -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) {