From: Christopher Faulet Date: Tue, 19 Apr 2016 15:00:44 +0000 (+0200) Subject: MINOR: filters: Filters must define the callbacks struct during config parsing X-Git-Tag: v1.7-dev3~27 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=00e818aa587b254453b4c5be7358c72069b972c4;p=thirdparty%2Fhaproxy.git MINOR: filters: Filters must define the callbacks struct during config parsing --- diff --git a/src/filters.c b/src/filters.c index c277c12b86..cceca50cd2 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); }