]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Propagate fuzzy server error to a client
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 24 Jun 2016 15:07:50 +0000 (16:07 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 24 Jun 2016 15:07:50 +0000 (16:07 +0100)
src/plugins/fuzzy_check.c

index 76a443f88e20e17a10ed887870b9592e61eff1d9..595df53fc80d42ee448872cc73179ac590a4f0e2 100644 (file)
@@ -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;
                                }