mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-25 23:20:45 +00:00
BUG/MEDIUM: htx: Don't return the start-line if the HTX message is empty
In the function htx_get_stline(), NULL must be returned if the HTX message doesn't contain any element. This patch must be backported to 1.9.
This commit is contained in:
parent
038ad8123b
commit
3a4d1bea61
@ -280,7 +280,7 @@ static inline struct htx_sl *htx_get_stline(struct htx *htx)
|
||||
{
|
||||
struct htx_sl *sl = NULL;
|
||||
|
||||
if (htx->sl_off != -1)
|
||||
if (htx->used && htx->sl_off != -1)
|
||||
sl = ((void *)htx->blocks + htx->sl_off);
|
||||
|
||||
return sl;
|
||||
|
Loading…
Reference in New Issue
Block a user