]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix passing data to log helper when many symbols defined
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 26 Apr 2017 19:34:41 +0000 (20:34 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 1 May 2017 13:04:37 +0000 (14:04 +0100)
src/libserver/protocol.h
src/log_helper.c

index c266c2f997873f13597abb44caf93375c92d2509..c0095fedca44950d96ded57191a4b68e76d3d8e0 100644 (file)
@@ -20,7 +20,7 @@
 
 struct rspamd_protocol_log_symbol_result {
        guint32 id;
-       gdouble score;
+       float score;
 };
 struct rspamd_protocol_log_message_sum {
        guint32 nresults;
index d66f49271d51db316ad06fe5caaf0333653553bf..ade8dd3a9f5c9c9a1e491298ad6874f348ad1930 100644 (file)
@@ -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;