]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
bearssl: remove incorrect const on variable that is modified
authorMichael Forney <mforney@mforney.org>
Wed, 26 May 2021 06:42:07 +0000 (23:42 -0700)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 26 May 2021 12:43:40 +0000 (14:43 +0200)
hostname may be set to NULL later on in this function if it is an
IP address.

Closes #7133

lib/vtls/bearssl.c

index 7f729713d89e5397355c2073eb37dd2ae6149b91..40a5e7879ca76a3e0f447a0881a98226d290eeea 100644 (file)
@@ -300,7 +300,7 @@ static CURLcode bearssl_connect_step1(struct Curl_easy *data,
   struct ssl_connect_data *connssl = &conn->ssl[sockindex];
   struct ssl_backend_data *backend = connssl->backend;
   const char * const ssl_cafile = SSL_CONN_CONFIG(CAfile);
-  const char * const hostname = SSL_HOST_NAME();
+  const char *hostname = SSL_HOST_NAME();
   const bool verifypeer = SSL_CONN_CONFIG(verifypeer);
   const bool verifyhost = SSL_CONN_CONFIG(verifyhost);
   CURLcode ret;