projects
/
exim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fefe59d
)
Do not use shutdown() when talking to rspamd. Fixes 1802
author
Andrew Lewis
<exim@judo.za.org>
Tue, 11 Oct 2016 15:48:23 +0000
(17:48 +0200)
committer
Heiko Schlittermann (HS12-RIPE)
<hs@schlittermann.de>
Fri, 4 Nov 2016 10:22:25 +0000
(11:22 +0100)
src/src/spam.c
patch
|
blob
|
blame
|
history
diff --git
a/src/src/spam.c
b/src/src/spam.c
index f46e11e42391d7005d412b42afa73a87f4db4bb5..93c0a540d732e447103a6c3e658b8ed449fada0e 100644
(file)
--- 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));