summaryrefslogtreecommitdiff
path: root/pkg/curl/patch
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2021-05-26 01:13:03 -0700
committerMichael Forney <mforney@mforney.org>2021-05-27 01:19:21 -0700
commit6b4d47a7ab5248d634d177c78443dbbc10f633cd (patch)
tree5d8e9b3d03933988d26a8a98a266d29bff9cbcd9 /pkg/curl/patch
parentf910bf367cb5c1244b8339c34f05c06526310a9a (diff)
curl: Update to 7.77.0
Diffstat (limited to 'pkg/curl/patch')
-rw-r--r--pkg/curl/patch/0002-bearssl-remove-incorrect-const-on-variable-that-is-m.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/pkg/curl/patch/0002-bearssl-remove-incorrect-const-on-variable-that-is-m.patch b/pkg/curl/patch/0002-bearssl-remove-incorrect-const-on-variable-that-is-m.patch
new file mode 100644
index 00000000..297d9c44
--- /dev/null
+++ b/pkg/curl/patch/0002-bearssl-remove-incorrect-const-on-variable-that-is-m.patch
@@ -0,0 +1,27 @@
+From 7ac85916d1597d5fb9db2d8bc59d8d14059f2c2e Mon Sep 17 00:00:00 2001
+From: Michael Forney <mforney@mforney.org>
+Date: Tue, 25 May 2021 23:42:07 -0700
+Subject: [PATCH] bearssl: remove incorrect const on variable that is modified
+
+hostname may be set to NULL later on in this function if it is an
+IP address.
+---
+ lib/vtls/bearssl.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/lib/vtls/bearssl.c b/lib/vtls/bearssl.c
+index 7f729713d..40a5e7879 100644
+--- a/lib/vtls/bearssl.c
++++ b/lib/vtls/bearssl.c
+@@ -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;
+--
+2.31.1
+