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:
5b52b00
)
CLEANUP: ssl: remove a useless "if" before freeing an error message
author
Willy Tarreau
<w@1wt.eu>
Fri, 26 Feb 2021 20:12:15 +0000
(21:12 +0100)
committer
Willy Tarreau
<w@1wt.eu>
Fri, 26 Feb 2021 20:22:20 +0000
(21:22 +0100)
Just an old "if (err) free(err)" that managed to escape cleanups.
src/ssl_sock.c
patch
|
blob
|
history
diff --git
a/src/ssl_sock.c
b/src/ssl_sock.c
index
a59b34d
..
580c6fe
100644
(file)
--- a/
src/ssl_sock.c
+++ b/
src/ssl_sock.c
@@
-5117,7
+5117,7
@@
ssl_sock_load_ca(struct bind_conf *bind_conf)
if (ssl_sock_load_files_into_ckch(bind_conf->ca_sign_file, ckch, &err)) {
ha_alert("Proxy '%s': Failed to read CA certificate file '%s' at [%s:%d]. Chain loading failed: %s\n",
px->id, bind_conf->ca_sign_file, bind_conf->file, bind_conf->line, err);
- if (err) free(err);
+ free(err);
goto failed;
}