]> git.ipfire.org Git - people/ms/suricata.git/commitdiff
xff: HttpXFFGetCfg - allow conf to be NULL
authorJason Ish <ish@unx.ca>
Mon, 30 Apr 2018 23:22:02 +0000 (17:22 -0600)
committerVictor Julien <victor@inliniac.net>
Fri, 4 May 2018 14:38:55 +0000 (16:38 +0200)
The code fully handles conf being NULL, and we have other functions
where conf can be NULL.

src/app-layer-htp-xff.c

index fd48b7e93b6761b4a14531f2077782d3394bf193..73ddbe0363ccae72d7e08e836b892d796e014311 100644 (file)
@@ -201,7 +201,7 @@ end:
  */
 void HttpXFFGetCfg(ConfNode *conf, HttpXFFCfg *result)
 {
-    BUG_ON(conf == NULL || result == NULL);
+    BUG_ON(result == NULL);
 
     ConfNode *xff_node = NULL;