From 3166bd0a236520e6eb2467ad4ffd01909e2e680f Mon Sep 17 00:00:00 2001 From: Marek Vavrusa <marek.vavrusa@nic.cz> Date: Wed, 27 Nov 2013 21:45:30 +0100 Subject: [PATCH] Restored removed assertion, trie node shouldn't split this way. --- src/common/hattrie/hat-trie.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/hattrie/hat-trie.c b/src/common/hattrie/hat-trie.c index d6a3de754..d219ac399 100644 --- a/src/common/hattrie/hat-trie.c +++ b/src/common/hattrie/hat-trie.c @@ -645,6 +645,7 @@ value_t* hattrie_get(hattrie_t* T, const char* key, size_t len) /* attempt to fit new element and split if it doesn't fit */ while (val == NULL) { + assert(len > 0); size_t m_old = node.b->weight; if (*node.flag & NODE_TYPE_PURE_BUCKET) { val = hhash_map(node.b, key + 1, len - 1, HHASH_INSERT); -- GitLab