]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Initialize parser scripts properly
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 9 Jun 2016 10:16:42 +0000 (11:16 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 9 Jun 2016 10:16:42 +0000 (11:16 +0100)
src/rspamd_proxy.c

index 5c542105e032e9cd393a471ac4eb81a85084b3bb..d9231ec3d4f0674e7e77c6f21bbfb57cbd85293b 100644 (file)
@@ -279,6 +279,8 @@ rspamd_proxy_parse_upstream (rspamd_mempool_t *pool,
        }
 
        up = g_slice_alloc0 (sizeof (*up));
+       up->parser_from_ref = -1;
+       up->parser_to_ref = -1;
        up->name = g_strdup (ucl_object_tostring (elt));
 
        elt = ucl_object_lookup (obj, "key");