From: Anoop Saldanha Date: Fri, 6 Sep 2013 16:28:51 +0000 (+0530) Subject: Fix for #922. X-Git-Tag: suricata-2.0beta2~391 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bed3f605fa6dc0b68eb09438842fd4d66841e7bf;p=thirdparty%2Fsuricata.git Fix for #922. Add more relevant error message when we supply invalid value for defrag.trackers and defrag.hash-size --- diff --git a/src/defrag-hash.c b/src/defrag-hash.c index f6c4523f93..da6a37145a 100644 --- a/src/defrag-hash.c +++ b/src/defrag-hash.c @@ -157,6 +157,8 @@ void DefragInitConfig(char quiet) if (ByteExtractStringUint32(&configval, 10, strlen(conf_val), conf_val) > 0) { defrag_config.hash_size = configval; + } else { + WarnInvalidConfEntry("defrag.hash-size", "%"PRIu32, defrag_config.hash_size); } } @@ -166,6 +168,8 @@ void DefragInitConfig(char quiet) if (ByteExtractStringUint32(&configval, 10, strlen(conf_val), conf_val) > 0) { defrag_config.prealloc = configval; + } else { + WarnInvalidConfEntry("defrag.trackers", "%"PRIu32, defrag_config.prealloc); } } SCLogDebug("DefragTracker config from suricata.yaml: memcap: %"PRIu64", hash-size: "