projects
/
haproxy-2.5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e5f4133
)
BUG/MINOR: http: url32+src should check cli_conn before using it
author
Dragan Dosen
<ddosen@haproxy.com>
Thu, 16 Jun 2016 09:23:01 +0000
(11:23 +0200)
committer
Willy Tarreau
<w@1wt.eu>
Thu, 16 Jun 2016 10:53:25 +0000
(12:53 +0200)
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.
src/proto_http.c
patch
|
blob
|
history
diff --git
a/src/proto_http.c
b/src/proto_http.c
index
7712281
..
228c90b
100644
(file)
--- a/
src/proto_http.c
+++ b/
src/proto_http.c
@@
-11654,6
+11654,9
@@
smp_fetch_url32_src(const struct arg *args, struct sample *smp, const char *kw,
struct chunk *temp;
struct connection *cli_conn = objt_conn(smp->sess->origin);
+ if (!cli_conn)
+ return 0;
+
if (!smp_fetch_url32(args, smp, kw, private))
return 0;