]> source.dussan.org Git - rspamd.git/commitdiff
[CritFix] Another errors path handling fix
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 18 Nov 2017 13:53:33 +0000 (13:53 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 18 Nov 2017 13:53:33 +0000 (13:53 +0000)
MFH: rspamd-1.6

src/libserver/milter.c

index 56315102fcee4b8b02ddeec3f5f70fb9bed29cfe..f2ced4f0fae263cffe497d1fa22691cf12035936 100644 (file)
@@ -1002,6 +1002,8 @@ rspamd_milter_handle_session (struct rspamd_milter_session *session,
                                                priv->err_cb (priv->fd, session, priv->ud, err);
                                                REF_RELEASE (session);
                                                g_error_free (err);
+
+                                               return FALSE;
                                        }
                                }
                                else if (r == 0) {
@@ -1011,6 +1013,8 @@ rspamd_milter_handle_session (struct rspamd_milter_session *session,
                                        priv->err_cb (priv->fd, session, priv->ud, err);
                                        REF_RELEASE (session);
                                        g_error_free (err);
+
+                                       return FALSE;
                                }
                                else {
                                        if (r == to_write) {