]> granicus.if.org Git - curl/commitdiff
TLS: only reuse connections with the same client cert
authorDaniel Stenberg <daniel@haxx.se>
Sat, 30 Jul 2016 22:51:48 +0000 (00:51 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 2 Aug 2016 22:34:27 +0000 (00:34 +0200)
CVE-2016-5420
Bug: https://curl.haxx.se/docs/adv_20160803B.html

lib/vtls/vtls.c

index 33e209dc1288b0263862d4a19a612d91fdd76007..38637771e99f6e9b8440befb5d817f3feef96d21 100644 (file)
@@ -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))