]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: ssl: remove a useless "if" before freeing an error message
authorWilly Tarreau <w@1wt.eu>
Fri, 26 Feb 2021 20:12:15 +0000 (21:12 +0100)
committerWilly 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

index a59b34d57fc8def4c5d532379e5d3e977ada6e20..580c6fe143a8b0248f160012cb4609dca159e868 100644 (file)
@@ -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;
        }