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:
106f631
)
BUG/MINOR: Prevent a use-after-free on error scenario on option "-x".
author
Olivier Houchard
<ohouchard@haproxy.com>
Mon, 17 Jul 2017 15:25:33 +0000
(17:25 +0200)
committer
Willy Tarreau
<w@1wt.eu>
Tue, 18 Jul 2017 02:22:32 +0000
(
04:22
+0200)
This was introduced with recent commit f73629d ("MINOR: global: Add an
option to get the old listening sockets."). No backport is needed.
src/haproxy.c
patch
|
blob
|
history
diff --git
a/src/haproxy.c
b/src/haproxy.c
index
2316100
..
7af1092
100644
(file)
--- a/
src/haproxy.c
+++ b/
src/haproxy.c
@@
-997,6
+997,7
@@
static int get_old_sockets(const char *unixsocket)
if (getsockname(fd, (struct sockaddr *)&xfer_sock->addr, &socklen) != 0) {
Warning("Failed to get socket address\n");
free(xfer_sock);
+ xfer_sock = NULL;
continue;
}
if (curoff >= maxoff) {