From db6ef81fb01414f4258b152de19b00c07568a044 Mon Sep 17 00:00:00 2001 From: Anoop Saldanha Date: Sun, 1 Sep 2013 15:31:09 +0530 Subject: [PATCH] fix for #926. Supply meaningful error message when user supplies invalid value for host.prealloc. --- src/host.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/host.c b/src/host.c index 526f9f7509..c3efa1b1c5 100644 --- a/src/host.c +++ b/src/host.c @@ -166,6 +166,8 @@ void HostInitConfig(char quiet) if (ByteExtractStringUint32(&configval, 10, strlen(conf_val), conf_val) > 0) { host_config.prealloc = configval; + } else { + WarnInvalidConfEntry("host.prealloc", "%"PRIu32, host_config.prealloc); } } SCLogDebug("Host config from suricata.yaml: memcap: %"PRIu64", hash-size: "