aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2016-07-31 00:51:48 +0200
committerDaniel Stenberg <daniel@haxx.se>2016-08-03 00:34:27 +0200
commit11ec5ad4352bba384404c56e77c7fab9382fd22d (patch)
treec67ab6564c805386f3cdb0d70216f4c9bfa951eb
parent247d890da88f9ee817079e246c59f3d7d12fde5f (diff)
TLS: only reuse connections with the same client cert
CVE-2016-5420 Bug: https://curl.haxx.se/docs/adv_20160803B.html
-rw-r--r--lib/vtls/vtls.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/vtls/vtls.c b/lib/vtls/vtls.c
index 33e209dc1..38637771e 100644
--- a/lib/vtls/vtls.c
+++ b/lib/vtls/vtls.c
@@ -99,6 +99,7 @@ Curl_ssl_config_matches(struct ssl_config_data* data,
(data->verifyhost == needle->verifyhost) &&
safe_strequal(data->CApath, needle->CApath) &&
safe_strequal(data->CAfile, needle->CAfile) &&
+ safe_strequal(data->clientcert, needle->clientcert) &&
safe_strequal(data->random_file, needle->random_file) &&
safe_strequal(data->egdsocket, needle->egdsocket) &&
safe_strequal(data->cipher_list, needle->cipher_list))