public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Kamil Dudka <kdudka@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/curl] curl-v8.21.0-9: Oops, upstream commit 157f20fd2ce7d8519b863e57f3d77d17fb41bc9c does not
Date: Mon, 02 Nov 2026 14:26:58 GMT [thread overview]
Message-ID: <179362961889.1.16658722353951401547.rpms-curl-dcb644501ede@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/curl
Branch : curl-v8.21.0-9
Commit : dcb644501edeb824fb0c33c5ba86dcb3e53de1fb
Author : Kamil Dudka <kdudka@fedoraproject.org>
Date : 2010-04-24T21:56:59+00:00
Stats : +53/-53 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/curl/c/dcb644501edeb824fb0c33c5ba86dcb3e53de1fb?branch=curl-v8.21.0-9
Log:
Oops, upstream commit 157f20fd2ce7d8519b863e57f3d77d17fb41bc9c does not
exist...
---
diff --git a/curl-7.20.1-157f20f.patch b/curl-7.20.1-157f20f.patch
deleted file mode 100644
index 684864f..0000000
--- a/curl-7.20.1-157f20f.patch
+++ /dev/null
@@ -1,51 +0,0 @@
-From 157f20fd2ce7d8519b863e57f3d77d17fb41bc9c Mon Sep 17 00:00:00 2001
-From: Kamil Dudka <kdudka@redhat.com>
-Date: Sat, 24 Apr 2010 23:21:13 +0200
-Subject: [PATCH] nss: fix SSL handshake timeout underflow
-
- lib/nss.c | 10 +++++++++-
- 2 files changed, 12 insertions(+), 1 deletions(-)
-
-diff --git a/CHANGES b/CHANGES
-index 99f04a5..7433364 100644
---- a/CHANGES
-+++ b/CHANGES
-@@ -10,6 +10,9 @@ Kamil Dudka (24 Apr 2010)
- - Fixed test536 in order to not fail with threaded DNS resolver and tweaked
- comments in certain examples using curl_multi_fdset().
-
-+- Fixed SSL handshake timeout underflow in libcurl-NSS, which caused test405
-+ to hang on a slow machine.
-+
- Version 7.20.1 (14 April 2010)
-
- Daniel Stenberg (9 Apr 2010)
-diff --git a/lib/nss.c b/lib/nss.c
-index 0f8ebd5..addb94b 100644
---- a/lib/nss.c
-+++ b/lib/nss.c
-@@ -1025,6 +1025,7 @@ CURLcode Curl_nss_connect(struct connectdata *conn, int sockindex)
- int curlerr;
- const int *cipher_to_enable;
- PRSocketOptionData sock_opt;
-+ long time_left;
- PRUint32 timeout;
-
- curlerr = CURLE_SSL_CONNECT_ERROR;
-@@ -1302,8 +1303,15 @@ CURLcode Curl_nss_connect(struct connectdata *conn, int sockindex)
-
- SSL_SetURL(connssl->handle, conn->host.name);
-
-+ /* check timeout situation */
-+ time_left = Curl_timeleft(conn, NULL, TRUE);
-+ if(time_left < 0L) {
-+ failf(data, "timed out before SSL handshake");
-+ goto error;
-+ }
-+ timeout = PR_MillisecondsToInterval((PRUint32) time_left);
-+
- /* Force the handshake now */
-- timeout = PR_MillisecondsToInterval((PRUint32)Curl_timeleft(conn, NULL, TRUE));
- if(SSL_ForceHandshakeWithTimeout(connssl->handle, timeout) != SECSuccess) {
- if(conn->data->set.ssl.certverifyresult == SSL_ERROR_BAD_CERT_DOMAIN)
- curlerr = CURLE_PEER_FAILED_VERIFICATION;
diff --git a/curl-7.20.1-82e9b78.patch b/curl-7.20.1-82e9b78.patch
new file mode 100644
index 0000000..ae919e2
--- /dev/null
+++ b/curl-7.20.1-82e9b78.patch
@@ -0,0 +1,51 @@
+From 82e9b78a388ab539c8784cd853adf6e4a97d52c5 Mon Sep 17 00:00:00 2001
+From: Kamil Dudka <kdudka@redhat.com>
+Date: Sat, 24 Apr 2010 23:21:13 +0200
+Subject: [PATCH] nss: fix SSL handshake timeout underflow
+
+ lib/nss.c | 10 +++++++++-
+ 2 files changed, 12 insertions(+), 1 deletions(-)
+
+diff --git a/CHANGES b/CHANGES
+index 99f04a5..7433364 100644
+--- a/CHANGES
++++ b/CHANGES
+@@ -10,6 +10,9 @@ Kamil Dudka (24 Apr 2010)
+ - Fixed test536 in order to not fail with threaded DNS resolver and tweaked
+ comments in certain examples using curl_multi_fdset().
+
++- Fixed SSL handshake timeout underflow in libcurl-NSS, which caused test405
++ to hang on a slow machine.
++
+ Version 7.20.1 (14 April 2010)
+
+ Daniel Stenberg (9 Apr 2010)
+diff --git a/lib/nss.c b/lib/nss.c
+index 0f8ebd5..addb94b 100644
+--- a/lib/nss.c
++++ b/lib/nss.c
+@@ -1025,6 +1025,7 @@ CURLcode Curl_nss_connect(struct connectdata *conn, int sockindex)
+ int curlerr;
+ const int *cipher_to_enable;
+ PRSocketOptionData sock_opt;
++ long time_left;
+ PRUint32 timeout;
+
+ curlerr = CURLE_SSL_CONNECT_ERROR;
+@@ -1302,8 +1303,15 @@ CURLcode Curl_nss_connect(struct connectdata *conn, int sockindex)
+
+ SSL_SetURL(connssl->handle, conn->host.name);
+
++ /* check timeout situation */
++ time_left = Curl_timeleft(conn, NULL, TRUE);
++ if(time_left < 0L) {
++ failf(data, "timed out before SSL handshake");
++ goto error;
++ }
++ timeout = PR_MillisecondsToInterval((PRUint32) time_left);
++
+ /* Force the handshake now */
+- timeout = PR_MillisecondsToInterval((PRUint32)Curl_timeleft(conn, NULL, TRUE));
+ if(SSL_ForceHandshakeWithTimeout(connssl->handle, timeout) != SECSuccess) {
+ if(conn->data->set.ssl.certverifyresult == SSL_ERROR_BAD_CERT_DOMAIN)
+ curlerr = CURLE_PEER_FAILED_VERIFICATION;
diff --git a/curl.spec b/curl.spec
index bcdb6c1..837081b 100644
--- a/curl.spec
+++ b/curl.spec
@@ -13,8 +13,8 @@ Patch0: curl-7.20.0-e32fe30.patch
# upstream commit d487ade72c5f31703ce097e8460e0225fad80348
Patch1: curl-7.20.1-d487ade.patch
-# upstream commit 157f20fd2ce7d8519b863e57f3d77d17fb41bc9c
-Patch2: curl-7.20.1-157f20f.patch
+# upstream commit 82e9b78a388ab539c8784cd853adf6e4a97d52c5
+Patch2: curl-7.20.1-82e9b78.patch
# patch making libcurl multilib ready
Patch101: curl-7.20.0-multilib.patch
reply other threads:[~2026-11-02 14:26 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179362961889.1.16658722353951401547.rpms-curl-dcb644501ede@fedoraproject.org \
--to=kdudka@fedoraproject.org \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox