diff --git a/src/mux_h1.c b/src/mux_h1.c index 7eb18133d..a9363cd44 100644 --- a/src/mux_h1.c +++ b/src/mux_h1.c @@ -5663,7 +5663,11 @@ static int cfg_parse_h1_headers_case_adjust_file(char **args, int section_type, } free(hdrs_map.name); hdrs_map.name = strdup(args[1]); - return 0; + if (!hdrs_map.name) { + memprintf(err, "'%s %s' : out of memory", args[0], args[1]); + return -1; + } + return 0; } /* config parser for global "tune.h1.zero-copy-fwd-recv" */