Dictionary conditions reversed.

During a code cleanup, a check for a TLV tag inverted the logic.
This commit is contained in:
Kyle Isom 2023-10-18 17:35:27 -07:00
parent fa1cb59697
commit 184d468b06
1 changed files with 2 additions and 2 deletions

View File

@ -44,8 +44,8 @@ Dictionary::Lookup(const char *key, uint8_t klen, TLV::Record &res)
if ((klen == res.Len) &&
(memcmp(res.Val, key, klen) == 0)) {
TLV::ReadFromMemory(res, cursor);
assert(res.Tag != this->vTag);
return res.Tag != this->vTag;
assert(res.Tag == this->vTag);
return res.Tag == this->vTag;
}
cursor = TLV::FindTag(this->arena, cursor, res);
}