  extern uschar *spam_score_int;         /* spam_score * 10 (int) */
  #endif
 diff --git a/src/spam.c b/src/spam.c
-index 7eb6fbf..11951a7 100644
+index 7eb6fbf..679a468 100644
 --- a/src/spam.c
 +++ b/src/spam.c
 @@ -14,12 +14,20 @@

+    /* rspamd variant */
+    int r, request_p = 0;
+    const char *helo;
+    struct iovec *request_v;
+    
+    request_v = store_get(sizeof(struct iovec) * (8 + recipients_count));
+    if (request_v == NULL) {
+      (void)close(spamd_sock);
+      log_write(0, LOG_MAIN|LOG_PANIC,

 
   /* now send the file */
   /* spamd sometimes accepts conections but doesn't read data off
@@ -348,60 +429,93 @@ again:
   /* reading done */
   (void)close(spamd_sock);
 
