From ec3425d7090591fc2aa6ca9fe95c2a787ebdefd1 Mon Sep 17 00:00:00 2001 From: Ken Steele Date: Wed, 5 Nov 2014 11:43:40 -0500 Subject: [PATCH] Make bad copy-mode be an error in runmode-tile. --- src/runmode-tile.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/runmode-tile.c b/src/runmode-tile.c index 9e12fd9e85..1839234ddd 100644 --- a/src/runmode-tile.c +++ b/src/runmode-tile.c @@ -130,7 +130,8 @@ void *ParseMpipeConfig(const char *iface) aconf->out_iface); aconf->copy_mode = MPIPE_COPY_MODE_TAP; } else { - SCLogInfo("Invalid mode (no in tap, ips)"); + SCLogError(SC_ERR_RUNMODE, "Invalid mode (expected tap or ips)"); + exit(EXIT_FAILURE); } } return aconf; -- 2.47.3