stream: fix 'stream.inline=auto' for L2 IPS

Make sure the livedev setup is finalized before initializing the
stream engine.

Bug #2811

Reported-by: Ad Schellevis
pull/3661/head
Victor Julien 7 years ago
parent f98b5ecd6a
commit 0a106fe2ea

@ -2827,14 +2827,14 @@ static int PostConfLoadedSetup(SCInstance *suri)
DecodeGlobalConfig();
PreRunInit(suri->run_mode);
LiveDeviceFinalize();
if (PostDeviceFinalizedSetup(&suricata) != TM_ECODE_OK) {
exit(EXIT_FAILURE);
}
PreRunInit(suri->run_mode);
SCReturnInt(TM_ECODE_OK);
}

Loading…
Cancel
Save