diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-07-14 16:52:33 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-07-14 16:52:33 +0100 |
commit | 7238b9cfe41d73d90979902f600e55d89908c831 (patch) | |
tree | 98d6bd55c6ecb1e8ef2d2abd49e72cff331861fb /src/rspamd.c | |
parent | 98a7518f0b8f5bec20b5995ffcfde079b3fc8138 (diff) | |
download | rspamd-7238b9cfe41d73d90979902f600e55d89908c831.tar.gz rspamd-7238b9cfe41d73d90979902f600e55d89908c831.zip |
[Fix] Some fixes to libmagic initialization
Diffstat (limited to 'src/rspamd.c')
-rw-r--r-- | src/rspamd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rspamd.c b/src/rspamd.c index b45fa0229..c4aba793d 100644 --- a/src/rspamd.c +++ b/src/rspamd.c @@ -432,7 +432,7 @@ static inline uintptr_t make_listen_key (struct rspamd_worker_bind_conf *cf) { rspamd_cryptobox_fast_hash_state_t st; - guint i, keylen; + guint i, keylen = 0; guint8 *key; rspamd_inet_addr_t *addr; guint16 port; @@ -446,7 +446,7 @@ make_listen_key (struct rspamd_worker_bind_conf *cf) rspamd_cryptobox_fast_hash_update (&st, cf->name, strlen (cf->name)); for (i = 0; i < cf->cnt; i ++) { addr = g_ptr_array_index (cf->addrs, i); - key = rspamd_inet_address_get_radix_key ( + key = rspamd_inet_address_get_hash_key ( addr, &keylen); rspamd_cryptobox_fast_hash_update (&st, key, keylen); port = rspamd_inet_address_get_port (addr); |