Do not use shutdown() when talking to rspamd. Fixes 1802
[exim.git] / 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));