From: Vsevolod Stakhov Date: Wed, 26 Apr 2017 19:34:41 +0000 (+0100) Subject: [Fix] Fix passing data to log helper when many symbols defined X-Git-Tag: 1.5.7~9 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2b91a1501b9caa98cddd7a98def7efaff865fe95;p=rspamd.git [Fix] Fix passing data to log helper when many symbols defined --- 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;