]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: filters: Filters must define the callbacks struct during config parsing
authorChristopher Faulet <cfaulet@qualys.com>
Tue, 19 Apr 2016 15:00:44 +0000 (17:00 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 21 Apr 2016 04:59:18 +0000 (06:59 +0200)
src/filters.c

index c277c12b86fe7e5b5dea78928b6956f03b2ec1f3..cceca50cd2dcfd2db10b5918efbefb9a543f5bdd 100644 (file)
@@ -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);
        }