Do not use shutdown() when talking to rspamd. Fixes 1802
authorAndrew Lewis <exim@judo.za.org>
Tue, 11 Oct 2016 15:48:23 +0000 (17:48 +0200)
committerHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>
Fri, 4 Nov 2016 10:22:25 +0000 (11:22 +0100)
src/src/spam.c

index f46e11e42391d7005d412b42afa73a87f4db4bb5..93c0a540d732e447103a6c3e658b8ed449fada0e 100644 (file)
@@ -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));