From db196807943c494eef96841b2332a136f39c5bcc Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Mon, 2 Jan 2012 09:41:15 +0100 Subject: [PATCH] pcap: fix auto runmode This patch fixes initialization of a pointer. The lack of it was causing an invalid interface value to be given to suricata (in the case no interface was given on the command line). Reported-by: Delta Yeh --- src/runmode-pcap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runmode-pcap.c b/src/runmode-pcap.c index 0d0475bbe3..96e04a0d79 100644 --- a/src/runmode-pcap.c +++ b/src/runmode-pcap.c @@ -204,7 +204,7 @@ int RunModeIdsPcapSingle(DetectEngineCtx *de_ctx) int RunModeIdsPcapAuto(DetectEngineCtx *de_ctx) { /* tname = Detect + cpuid, this is 11bytes length as max */ - char *live_dev; + char *live_dev = NULL; int ret; SCEnter();