]> git.kaiwu.me - haproxy.git/commit
BUG/MAJOR: http: fix bug in parse_qvalue() when selecting compression algo
authorWilly Tarreau <w@1wt.eu>
Tue, 22 Apr 2014 21:32:05 +0000 (23:32 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 22 Apr 2014 21:32:05 +0000 (23:32 +0200)
commit38b3aa56462568e89d5086bf941f09fcb5cfd755
tree03639ccbbd7f376bac74f4114c682737e1cbcfe1
parentc006dab8be808555b333ad7166efe943b71b57a2
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.
src/proto_http.c