mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-24 23:31:40 +02:00
BUG/MINOR: http: url32+src should check cli_conn before using it
In function smp_fetch_url32_src(), it's better to check the value of cli_conn before we go any further. This patch needs to be backported to 1.6 and 1.5.
This commit is contained in:
parent
e5f4133b19
commit
db5af61f3c
@ -11654,6 +11654,9 @@ smp_fetch_url32_src(const struct arg *args, struct sample *smp, const char *kw,
|
|||||||
struct chunk *temp;
|
struct chunk *temp;
|
||||||
struct connection *cli_conn = objt_conn(smp->sess->origin);
|
struct connection *cli_conn = objt_conn(smp->sess->origin);
|
||||||
|
|
||||||
|
if (!cli_conn)
|
||||||
|
return 0;
|
||||||
|
|
||||||
if (!smp_fetch_url32(args, smp, kw, private))
|
if (!smp_fetch_url32(args, smp, kw, private))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user