Revert "Do not use shutdown() when talking to rspamd. Fixes 1802"
authorJeremy Harris <jgh146exb@wizmail.org>
Sat, 16 Jun 2018 13:45:40 +0000 (14:45 +0100)
committerJeremy Harris <jgh146exb@wizmail.org>
Tue, 26 Jun 2018 11:02:27 +0000 (12:02 +0100)
This reverts commit 416a0be6df0697848ca551dd3243b652e763792d.

src/src/spam.c

index c9b3a02dfde010c4162b846d8ae50307f53be306..95e5fc0775ec85aef4a8c9ffdffb4c8105490d1f 100644 (file)
@@ -493,7 +493,7 @@ if (ferror(mbox_file))
 
 /* we're done sending, close socket for writing */
 if (!sd->is_rspamd)
 
 /* we're done sending, close socket for writing */
 if (!sd->is_rspamd)
-  shutdown(spamd_cctx.sock,SHUT_WR);
+  shutdown(spamd_cctx.sock, SHUT_WR);
 
 /* read spamd response using what's left of the timeout.  */
 memset(spamd_buffer, 0, sizeof(spamd_buffer));
 
 /* read spamd response using what's left of the timeout.  */
 memset(spamd_buffer, 0, sizeof(spamd_buffer));