Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

curl: Fix regression in 7.82.0 #2709

Merged
merged 1 commit into from Mar 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
22 changes: 22 additions & 0 deletions build/curl/patches/openssl-cn-bug.patch
@@ -0,0 +1,22 @@

Regression introduced in curl 7.82.0, see

https://github.com/curl/curl/issues/8559
https://github.com/curl/curl/issues/8582

affects the pkg test suite.

Should be fixed in the next release, but they do not seem in a rush
to do that.

diff -wpruN '--exclude=*.orig' a~/lib/vtls/openssl.c a/lib/vtls/openssl.c
--- a~/lib/vtls/openssl.c 1970-01-01 00:00:00
+++ a/lib/vtls/openssl.c 1970-01-01 00:00:00
@@ -1808,6 +1808,7 @@ CURLcode Curl_ossl_verifyhost(struct Cur
memcpy(peer_CN, ASN1_STRING_get0_data(tmp), peerlen);
peer_CN[peerlen] = '\0';
}
+ else
result = CURLE_OUT_OF_MEMORY;
}
}
1 change: 1 addition & 0 deletions build/curl/patches/series
@@ -1 +1,2 @@
tests.patch
openssl-cn-bug.patch