[exim-dev] [Bug 1802] Rspamd scan should not use shutdown ca…

Startseite
Nachricht löschen
Nachricht beantworten
Autor: admin
Datum:  
To: exim-dev
Alte Treads: [exim-dev] [Bug 1802] New: Rspamd is scan should not use shutdown call
Betreff: [exim-dev] [Bug 1802] Rspamd scan should not use shutdown call
https://bugs.exim.org/show_bug.cgi?id=1802

Git Commit <git@???> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
                 CC|                            |git@???
             Status|NEW                         |RESOLVED


--- Comment #15 from Git Commit <git@???> ---
Git commit:
http://git.exim.org/exim.git/commitdiff/416a0be6df0697848ca551dd3243b652e763792d

commit 416a0be6df0697848ca551dd3243b652e763792d
Author:     Andrew Lewis <exim@???>
AuthorDate: Tue Oct 11 17:48:23 2016 +0200
Commit:     Heiko Schlittermann (HS12-RIPE) <hs@???>
CommitDate: Fri Nov 4 11:22:25 2016 +0100


    Do not use shutdown() when talking to rspamd. Fixes 1802
---
 src/src/spam.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)


diff --git a/src/src/spam.c b/src/src/spam.c
index f46e11e..93c0a54 100644
--- a/src/src/spam.c
+++ b/src/src/spam.c
@@ -494,7 +494,8 @@ if (ferror(mbox_file))
(void)fclose(mbox_file);

/* we're done sending, close socket for writing */
-shutdown(spamd_sock,SHUT_WR);
+if (!sd->is_rspamd)
+ shutdown(spamd_sock,SHUT_WR);

/* read spamd response using what's left of the timeout. */
memset(spamd_buffer, 0, sizeof(spamd_buffer));

--
You are receiving this mail because:
You are on the CC list for the bug.