commit | 00e818aa587b254453b4c5be7358c72069b972c4 | [log] [tgz] |
---|---|---|
author | Christopher Faulet <cfaulet@qualys.com> | Tue Apr 19 17:00:44 2016 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Thu Apr 21 06:59:18 2016 +0200 |
tree | 4bb14249e238cd88387cece00fb5571e953aa1c8 | |
parent | cc7317d11e68e4335d831dddc2c6cda0ac425d5d [diff] |
MINOR: filters: Filters must define the callbacks struct during config parsing
diff --git a/src/filters.c b/src/filters.c index c277c12..cceca50 100644 --- a/src/filters.c +++ b/src/filters.c
@@ -229,6 +229,11 @@ 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); }