From 00e818aa587b254453b4c5be7358c72069b972c4 Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Tue, 19 Apr 2016 17:00:44 +0200 Subject: [PATCH] MINOR: filters: Filters must define the callbacks struct during config parsing --- src/filters.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/filters.c b/src/filters.c index c277c12b8..cceca50cd 100644 --- a/src/filters.c +++ b/src/filters.c @@ -229,6 +229,11 @@ parse_filter(char **args, int section_type, struct proxy *curpx, args[0], args[1], args[cur_arg]); goto error; } + if (fconf->ops == NULL) { + memprintf(err, "'%s %s' : no callbacks defined.", + args[0], args[1]); + goto error; + } LIST_ADDQ(&curpx->filter_configs, &fconf->list); }