projects
/
haproxy-3.1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4931d1c
)
BUG/MINOR: mworker/cli: fix mworker_cli_global_proxy_new_listener
author
Valentine Krasnobaeva
<vkrasnobaeva@haproxy.com>
Thu, 24 Oct 2024 16:39:55 +0000
(18:39 +0200)
committer
Valentine Krasnobaeva
<vkrasnobaeva@haproxy.com>
Sat, 26 Oct 2024 20:53:24 +0000
(22:53 +0200)
There is no need to close proc->ipc_fd[0] on the error path in
mworker_cli_global_proxy_new_listener(), as it's already closed before by the
caller.
src/cli.c
patch
|
blob
|
history
diff --git
a/src/cli.c
b/src/cli.c
index
0d71280
..
aa3709c
100644
(file)
--- a/
src/cli.c
+++ b/
src/cli.c
@@
-3623,7
+3623,6
@@
int mworker_cli_global_proxy_new_listener(struct mworker_proc *proc)
return 0;
error:
- close(proc->ipc_fd[0]);
close(proc->ipc_fd[1]);
free(err);