Commit cfe64de6 authored by Daniel Salzman's avatar Daniel Salzman

utils: fix trie key comparing in lookup_list

parent 01809f32
......@@ -210,7 +210,7 @@ void lookup_list(lookup_t *lookup)
size_t len;
const char *key = hattrie_iter_key(lookup->, &len);
if (strcmp(key, lookup->iter.first_key) == 0) {
if (memcmp(key, lookup->iter.first_key, len) == 0) {
int ret = set_key(lookup, &lookup->found.key, key, len);
if (ret == KNOT_EOK) {
lookup-> = *hattrie_iter_val(lookup->;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment