]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: ssl: Print correct filename when error occurs reading OCSP
authorBertrand Jacquin <bertrand@jacquin.bzh>
Sun, 13 Nov 2016 16:37:14 +0000 (16:37 +0000)
committerWilly Tarreau <w@1wt.eu>
Mon, 14 Nov 2016 17:15:20 +0000 (18:15 +0100)
When Multi-Cert bundle are used, error is throwned regarding certificate
filename without including certifcate type extension.

src/ssl_sock.c

index ded1c240c11e1602fbab1516da58aa914408eb4a..cbc4f39995f1129d8793379f53410a133f5ae1e5 100644 (file)
@@ -2169,7 +2169,7 @@ static int ssl_sock_load_multi_cert(const char *path, struct bind_conf *bind_con
                                        if (ssl_sock_load_ocsp(cur_ctx, cur_file) < 0) {
                                                if (err)
                                                        memprintf(err, "%s '%s.ocsp' is present and activates OCSP but it is impossible to compute the OCSP certificate ID (maybe the issuer could not be found)'.\n",
-                                                                 *err ? *err : "", path);
+                                                                 *err ? *err : "", cur_file);
                                                SSL_CTX_free(cur_ctx);
                                                rv = 1;
                                                goto end;