From: Eric Leblond Date: Fri, 25 Oct 2013 21:44:12 +0000 (+0200) Subject: af-packet: init correctly the config structure X-Git-Tag: suricata-2.0beta2~197 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F603%2Fhead;p=thirdparty%2Fsuricata.git af-packet: init correctly the config structure This fix a crash when interface is not defined in YAML. --- 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) {