]> source.dussan.org Git - rspamd.git/commitdiff
Use base32 for keys instead of hex
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 17 Dec 2015 18:37:26 +0000 (18:37 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 17 Dec 2015 18:37:26 +0000 (18:37 +0000)
src/fuzzy_storage.c

index 70cb717a912dae490f2da2f68b793b82141dff8a..cd80b8cc6c0d5528efbf31793f31c0c03d62ca70 100644 (file)
@@ -845,7 +845,7 @@ rspamd_fuzzy_stat_to_ucl (struct rspamd_fuzzy_storage_ctx *ctx, gboolean ip_stat
                key_stat = key->stat;
 
                if (key_stat) {
-                       rspamd_snprintf (keyname, sizeof (keyname), "%8xs", k);
+                       rspamd_snprintf (keyname, sizeof (keyname), "%8bs", k);
 
                        elt = rspamd_fuzzy_storage_stat_key (key_stat);