diff options
author | Andrew Lewis <exim@judo.za.org> | 2016-10-11 17:48:23 +0200 |
---|---|---|
committer | Heiko Schlittermann (HS12-RIPE) <hs@schlittermann.de> | 2016-11-04 11:22:25 +0100 |
commit | 416a0be6df0697848ca551dd3243b652e763792d (patch) | |
tree | 335fc999333c762901e058c00e055c6bc564b853 | |
parent | fefe59d9280bc0b33fb9e1e89d0d664db8078542 (diff) |
Do not use shutdown() when talking to rspamd. Fixes 1802
-rw-r--r-- | src/src/spam.c | 3 |
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)); |