summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/src/spam.c3
1 files changed, 2 insertions, 1 deletions
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));