diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-04-26 20:34:41 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-05-01 14:04:37 +0100 |
commit | 2b91a1501b9caa98cddd7a98def7efaff865fe95 (patch) | |
tree | f74f8271fc43933bb9884cbfba59042f37a9ee80 | |
parent | 29537076451d99806f69334dc4f8fab8bd0aa727 (diff) | |
download | rspamd-2b91a1501b9caa98cddd7a98def7efaff865fe95.tar.gz rspamd-2b91a1501b9caa98cddd7a98def7efaff865fe95.zip |
[Fix] Fix passing data to log helper when many symbols defined
-rw-r--r-- | src/libserver/protocol.h | 2 | ||||
-rw-r--r-- | src/log_helper.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libserver/protocol.h b/src/libserver/protocol.h index c266c2f99..c0095fedc 100644 --- a/src/libserver/protocol.h +++ b/src/libserver/protocol.h @@ -20,7 +20,7 @@ struct rspamd_protocol_log_symbol_result { guint32 id; - gdouble score; + float score; }; struct rspamd_protocol_log_message_sum { guint32 nresults; diff --git a/src/log_helper.c b/src/log_helper.c index d66f49271..ade8dd3a9 100644 --- a/src/log_helper.c +++ b/src/log_helper.c @@ -77,7 +77,7 @@ static void rspamd_log_helper_read (gint fd, short what, gpointer ud) { struct log_helper_ctx *ctx = ud; - guchar buf[1024]; + guchar buf[8192]; gssize r; guint32 n, i, nextra; struct rspamd_protocol_log_message_sum *sm; |