From: Vsevolod Stakhov Date: Fri, 24 Jun 2016 15:07:50 +0000 (+0100) Subject: [Minor] Propagate fuzzy server error to a client X-Git-Tag: 1.3.0~258 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a7de52f40cc625c6f0e714f889dfddabc2968269;p=thirdparty%2Frspamd.git [Minor] Propagate fuzzy server error to a client --- diff --git a/src/plugins/fuzzy_check.c b/src/plugins/fuzzy_check.c index 76a443f88e..595df53fc8 100644 --- a/src/plugins/fuzzy_check.c +++ b/src/plugins/fuzzy_check.c @@ -1789,7 +1789,7 @@ fuzzy_controller_io_callback (gint fd, short what, void *arg) if (*(session->err) == NULL) { g_set_error (session->err, g_quark_from_static_string ("fuzzy check"), - EINVAL, "process fuzzy error"); + rep->value, "process fuzzy error"); } ret = return_finished; }