diff options
author | Daniel Stenberg <daniel@haxx.se> | 2018-10-26 13:34:37 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2018-10-26 13:34:37 +0200 |
commit | 4b3fa3d2ecee6824dfdfee9eb302f1a0db2b7cc3 (patch) | |
tree | 6ccc4ebc1c3bee36268aba9a5423c27746b6ea50 | |
parent | 8ada0188f96356b904a8f8f4a4fa32a5a9cb7071 (diff) | |
download | curl-bagder/tls13-typos.tar.gz |
openssl: output the correct cipher list on TLS 1.3 errorbagder/tls13-typos
When failing to set the 1.3 cipher suite, the wrong string pointer would
be used in the error message. Most often saying "(nil)".
Reported-by: Ricky-Tigg on github
Fixes #3178
-rw-r--r-- | lib/vtls/openssl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c index 4d1a95ed4..077b1e642 100644 --- a/lib/vtls/openssl.c +++ b/lib/vtls/openssl.c @@ -2466,7 +2466,7 @@ static CURLcode ossl_connect_step1(struct connectdata *conn, int sockindex) char *ciphers13 = SSL_CONN_CONFIG(cipher_list13); if(ciphers13) { if(!SSL_CTX_set_ciphersuites(BACKEND->ctx, ciphers13)) { - failf(data, "failed setting TLS 1.3 cipher suite: %s", ciphers); + failf(data, "failed setting TLS 1.3 cipher suite: %s", ciphers13); return CURLE_SSL_CIPHER; } infof(data, "TLS 1.3 cipher selection: %s\n", ciphers13); |