diff options
Diffstat (limited to 'src/libutil/hash.c')
-rw-r--r-- | src/libutil/hash.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libutil/hash.c b/src/libutil/hash.c index 7e4e7f27e..ec952e87b 100644 --- a/src/libutil/hash.c +++ b/src/libutil/hash.c @@ -24,6 +24,7 @@ #include "config.h" #include "hash.h" +#define HASH_CASELESS #include "uthash_strcase.h" #include "utlist.h" @@ -194,7 +195,7 @@ rspamd_lru_hash_insert (rspamd_lru_hash_t *hash, gpointer key, gpointer value, } res = rspamd_lru_create_node (hash, key, value, now, ttl); - HASH_ADD (hh, hash->elements, key, strlen (key), res); + HASH_ADD_KEYPTR (hh, hash->elements, key, strlen (key), res); } void |