diff options
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/recipes-support/curl/curl/0001-openssl-fix-CN-check-error-code.patch | 38 | ||||
| -rw-r--r-- | meta/recipes-support/curl/curl_7.82.0.bb | 1 |
2 files changed, 39 insertions, 0 deletions
diff --git a/meta/recipes-support/curl/curl/0001-openssl-fix-CN-check-error-code.patch b/meta/recipes-support/curl/curl/0001-openssl-fix-CN-check-error-code.patch new file mode 100644 index 0000000000..c0a2355e5b --- /dev/null +++ b/meta/recipes-support/curl/curl/0001-openssl-fix-CN-check-error-code.patch | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | From 0677924c6ec7e0d68964553fb760f6d407242c54 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Daniel Stenberg <daniel@haxx.se> | ||
| 3 | Date: Tue, 8 Mar 2022 13:38:13 +0100 | ||
| 4 | Subject: [PATCH] openssl: fix CN check error code | ||
| 5 | |||
| 6 | Due to a missing 'else' this returns error too easily. | ||
| 7 | |||
| 8 | Regressed in: d15692ebb | ||
| 9 | |||
| 10 | Reported-by: Kristoffer Gleditsch | ||
| 11 | Fixes #8559 | ||
| 12 | Closes #8560 | ||
| 13 | |||
| 14 | Upstream-Status: Backport [https://github.com/curl/curl/commit/911714d617c106ed5d553bf003e34ec94ab6a136] | ||
| 15 | |||
| 16 | Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io> | ||
| 17 | |||
| 18 | --- | ||
| 19 | lib/vtls/openssl.c | 3 ++- | ||
| 20 | 1 file changed, 2 insertions(+), 1 deletion(-) | ||
| 21 | |||
| 22 | diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c | ||
| 23 | index 616a510..1bafe96 100644 | ||
| 24 | --- a/lib/vtls/openssl.c | ||
| 25 | +++ b/lib/vtls/openssl.c | ||
| 26 | @@ -1808,7 +1808,8 @@ CURLcode Curl_ossl_verifyhost(struct Curl_easy *data, struct connectdata *conn, | ||
| 27 | memcpy(peer_CN, ASN1_STRING_get0_data(tmp), peerlen); | ||
| 28 | peer_CN[peerlen] = '\0'; | ||
| 29 | } | ||
| 30 | - result = CURLE_OUT_OF_MEMORY; | ||
| 31 | + else | ||
| 32 | + result = CURLE_OUT_OF_MEMORY; | ||
| 33 | } | ||
| 34 | } | ||
| 35 | else /* not a UTF8 name */ | ||
| 36 | -- | ||
| 37 | 2.34.1 | ||
| 38 | |||
diff --git a/meta/recipes-support/curl/curl_7.82.0.bb b/meta/recipes-support/curl/curl_7.82.0.bb index ba3fd11820..d5dfe62a39 100644 --- a/meta/recipes-support/curl/curl_7.82.0.bb +++ b/meta/recipes-support/curl/curl_7.82.0.bb | |||
| @@ -23,6 +23,7 @@ SRC_URI = "https://curl.se/download/${BP}.tar.xz \ | |||
| 23 | file://CVE-2022-27779.patch \ | 23 | file://CVE-2022-27779.patch \ |
| 24 | file://CVE-2022-27782-1.patch \ | 24 | file://CVE-2022-27782-1.patch \ |
| 25 | file://CVE-2022-27782-2.patch \ | 25 | file://CVE-2022-27782-2.patch \ |
| 26 | file://0001-openssl-fix-CN-check-error-code.patch \ | ||
| 26 | " | 27 | " |
| 27 | SRC_URI[sha256sum] = "0aaa12d7bd04b0966254f2703ce80dd5c38dbbd76af0297d3d690cdce58a583c" | 28 | SRC_URI[sha256sum] = "0aaa12d7bd04b0966254f2703ce80dd5c38dbbd76af0297d3d690cdce58a583c" |
| 28 | 29 | ||
