mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-17 08:54:41 +00:00
BUG/MAJOR: http: fix bug in parse_qvalue() when selecting compression algo
Commit ad90351
("MINOR: http: Add the "language" converter to for use with accept-language")
introduced a typo in parse_qvalue :
if (*end)
*end = qvalue;
while it should be :
if (end)
*end = qvalue;
Since end is tested for being NULL. This crashes when selecting the
compression algorithm since end is NULL here. No backport is needed,
this is just in latest 1.5-dev.
This commit is contained in:
parent
c006dab8be
commit
38b3aa5646
@ -2151,7 +2151,7 @@ int parse_qvalue(const char *qvalue, const char **end)
|
||||
out:
|
||||
if (q > 1000)
|
||||
q = 1000;
|
||||
if (*end)
|
||||
if (end)
|
||||
*end = qvalue;
|
||||
return q;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user