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 <delta.yeh@gmail.com>
remotes/origin/master-1.2.x
Eric Leblond 13 years ago committed by Victor Julien
parent 3d558bf06f
commit db19680794

@ -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();

Loading…
Cancel
Save