From: Ken Steele Date: Wed, 5 Nov 2014 16:43:40 +0000 (-0500) Subject: Make bad copy-mode be an error in runmode-tile. X-Git-Tag: suricata-2.1beta3~106 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1faa94c314524a35452a5abbf19c2dd0a8fd01ae;p=thirdparty%2Fsuricata.git Make bad copy-mode be an error in runmode-tile. --- 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;