BUG/MEDIUM: sample: initialize the pointer before parse_binary call.

parse_binary line 2025 checks the nullity of binstr parameter.
Other calls of parse_binary properly zeroify this parameter.
[wt: this could result in random failures of the const parser]
This commit is contained in:
David Carlier 2016-04-08 10:37:02 +01:00 committed by Willy Tarreau
parent 97880bb46d
commit 64a16ab19c

View File

@ -2524,7 +2524,7 @@ static int smp_fetch_const_ipv6(const struct arg *args, struct sample *smp, cons
static int smp_check_const_bin(struct arg *args, char **err)
{
char *binstr;
char *binstr = NULL;
int binstrlen;
if (!parse_binary(args[0].data.str.str, &binstr, &binstrlen, err))