From a73da1ed25df3ade12c5ae3aafdad82bf2ec5384 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Fri, 14 Dec 2018 10:19:28 +0100 Subject: [PATCH] BUG/MEDIUM: cache: fix random crash on filter parser's error path The cconf variable was not initialized before the two first possible error exits before being freed, resulting in random crashes instead of displaying an error message if the cache ID was missing from the filter declaration. No backport is needed, this is exclusively 1.9. --- src/cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cache.c b/src/cache.c index 9cfb5350ba..74743f2b51 100644 --- a/src/cache.c +++ b/src/cache.c @@ -1639,7 +1639,7 @@ parse_cache_flt(char **args, int *cur_arg, struct proxy *px, struct flt_conf *fconf, char **err, void *private) { struct flt_conf *f, *back; - struct cache_flt_conf *cconf; + struct cache_flt_conf *cconf = NULL; char *name = NULL; int pos = *cur_arg; -- 2.47.3