This only occurs when elements are removed, but that is currently not
used in libclamav (except for a new bytecode API).
... | ... |
@@ -329,6 +329,7 @@ const struct cli_element* cli_hashtab_insert(struct cli_hashtable *s, const char |
329 | 329 |
} |
330 | 330 |
else if(element->key == DELETED_KEY) { |
331 | 331 |
deleted_element = element; |
332 |
+ element->key = NULL; |
|
332 | 333 |
} |
333 | 334 |
else if(len == element->len && strncmp(key, element->key, len)==0) { |
334 | 335 |
PROFILE_DATA_UPDATE(s, tries); |