From 781a7e108946353ffb4ff392e95d5805326f2db6 Mon Sep 17 00:00:00 2001 From: Jason Ish Date: Mon, 30 Apr 2018 17:22:02 -0600 Subject: [PATCH] xff: HttpXFFGetCfg - allow conf to be NULL The code fully handles conf being NULL, and we have other functions where conf can be NULL. --- src/app-layer-htp-xff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app-layer-htp-xff.c b/src/app-layer-htp-xff.c index fd48b7e93b..73ddbe0363 100644 --- a/src/app-layer-htp-xff.c +++ b/src/app-layer-htp-xff.c @@ -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;