From c8b3f4418affd9135ef1103694b0d907531e0d13 Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Fri, 25 Oct 2013 23:44:12 +0200 Subject: [PATCH] af-packet: init correctly the config structure This fix a crash when interface is not defined in YAML. --- src/runmode-af-packet.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/runmode-af-packet.c b/src/runmode-af-packet.c index 1c9d2ad3da..6765d081a1 100644 --- a/src/runmode-af-packet.c +++ b/src/runmode-af-packet.c @@ -143,6 +143,7 @@ void *ParseAFPConfig(const char *iface) aconf->flags = 0; aconf->bpf_filter = NULL; aconf->out_iface = NULL; + aconf->copy_mode = AFP_COPY_MODE_NONE; if (ConfGet("bpf-filter", &bpf_filter) == 1) { if (strlen(bpf_filter) > 0) { -- 2.47.2