]> source.dussan.org Git - rspamd.git/commitdiff
[Test] Try to fix test segfault
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 16 Oct 2018 16:01:00 +0000 (17:01 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 16 Oct 2018 16:01:00 +0000 (17:01 +0100)
test/lua/unit/received.lua

index 6c133279f6a4af9e889d9139784a6296ffcc0914..ac21c0e83f5613ac1f33ed96df29d2769165b6fa 100644 (file)
@@ -5,17 +5,18 @@ context("Received headers parser", function()
 
   ffi.cdef[[
     struct received_header {
-    char *from_hostname;
-    char *from_ip;
-    char *real_hostname;
-    char *real_ip;
-    char *by_hostname;
-    char *for_mbox;
-    void *addr;
-    void *hdr;
-    long timestamp;
-    int type;
-    int flags;
+      char *from_hostname;
+      char *from_ip;
+      char *real_hostname;
+      char *real_ip;
+      char *by_hostname;
+      char *for_mbox;
+      char *comment_ip;
+      void *addr;
+      void *hdr;
+      long timestamp;
+      int type;
+      int flags;
   };
   struct rspamd_task * rspamd_task_new(struct rspamd_worker *worker, struct rspamd_config *cfg);
   int rspamd_smtp_received_parse (struct rspamd_task *task,