mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-14 17:49:08 +02:00
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.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user