From: Vsevolod Stakhov Date: Tue, 16 Oct 2018 16:01:00 +0000 (+0100) Subject: [Test] Try to fix test segfault X-Git-Tag: 1.8.1~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=79c94a99ba45b3b0ea6ebc1ecf24d224fda579a6;p=rspamd.git [Test] Try to fix test segfault --- diff --git a/test/lua/unit/received.lua b/test/lua/unit/received.lua index 6c133279f..ac21c0e83 100644 --- a/test/lua/unit/received.lua +++ b/test/lua/unit/received.lua @@ -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,