diff options
author | Andrew Lewis <nerf@judo.za.org> | 2016-04-09 14:39:13 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2016-04-09 14:39:13 +0200 |
commit | 782603601be419ddaac935f07d8a05f51d7f7dfa (patch) | |
tree | 275e3289b3524c6002b5bb4f2cbdec5fc2a6a927 /contrib/exim/shutdown.patch | |
parent | f998a65903c03af833e5947afb67de874abe6969 (diff) | |
download | rspamd-782603601be419ddaac935f07d8a05f51d7f7dfa.tar.gz rspamd-782603601be419ddaac935f07d8a05f51d7f7dfa.zip |
Update Exim patches
Diffstat (limited to 'contrib/exim/shutdown.patch')
-rw-r--r-- | contrib/exim/shutdown.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/contrib/exim/shutdown.patch b/contrib/exim/shutdown.patch new file mode 100644 index 000000000..39007130f --- /dev/null +++ b/contrib/exim/shutdown.patch @@ -0,0 +1,14 @@ +diff -ru exim-4.86.orig/src/spam.c exim-4.86/src/spam.c +--- exim-4.86.orig/src/spam.c 2016-04-09 13:54:51.583800284 +0200 ++++ exim-4.86/src/spam.c 2016-04-09 13:55:16.659806242 +0200 +@@ -499,7 +499,9 @@ + (void)fclose(mbox_file); + + /* we're done sending, close socket for writing */ +-shutdown(spamd_sock,SHUT_WR); ++if (!is_rspamd) { ++ shutdown(spamd_sock,SHUT_WR); ++} + + /* read spamd response using what's left of the timeout. */ + memset(spamd_buffer, 0, sizeof(spamd_buffer)); |