From: Andrew Lewis Date: Tue, 11 Oct 2016 15:48:23 +0000 (+0200) Subject: Do not use shutdown() when talking to rspamd. Fixes 1802 X-Git-Tag: exim-4_88_RC4~9 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=416a0be6df0697848ca551dd3243b652e763792d;p=exim.git Do not use shutdown() when talking to rspamd. Fixes 1802 --- diff --git a/src/src/spam.c b/src/src/spam.c index f46e11e42..93c0a540d 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));