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.23.0-3: - fix crash on doubly closed NSPR descriptor, patch contributed by Kevin
Date: Tue, 03 Nov 2026 12:33:34 GMT [thread overview]
Message-ID: <179370921475.1.4475562007464732634.rpms-curl-ee5ba870fa9e@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/curl
Branch : curl-v8.23.0-3
Commit : ee5ba870fa9e2725fdbd8cf7bca1774761b08e69
Author : Kamil Dudka <kdudka@fedoraproject.org>
Date : 2009-11-12T12:00:33+00:00
Stats : +27/-12 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/curl/c/ee5ba870fa9e2725fdbd8cf7bca1774761b08e69?branch=curl-v8.23.0-3
Log:
- fix crash on doubly closed NSPR descriptor, patch contributed by Kevin
Baughman (#534176)
- new version of patch for broken TLS servers (#525496, #527771)
---
diff --git a/curl-7.19.7-modelfree.patch b/curl-7.19.7-modelfree.patch
new file mode 100644
index 0000000..1e36e4d
--- /dev/null
+++ b/curl-7.19.7-modelfree.patch
@@ -0,0 +1,12 @@
+diff --git a/lib/nss.c b/lib/nss.c
+index f5c69e6..d1a9d1a 100644
+--- a/lib/nss.c
++++ b/lib/nss.c
+@@ -1265,6 +1265,7 @@ CURLcode Curl_nss_connect(struct connectdata *conn, int sockindex)
+ if(!connssl->handle)
+ goto error;
+ PR_Close(model); /* We don't need this any more */
++ model = NULL;
+
+ /* This is the password associated with the cert that we're using */
+ if (data->set.str[STRING_KEY_PASSWD]) {
diff --git a/curl-7.19.7-ssl-retry.patch b/curl-7.19.7-ssl-retry.patch
index c26b10c..3799d5b 100644
--- a/curl-7.19.7-ssl-retry.patch
+++ b/curl-7.19.7-ssl-retry.patch
@@ -1,5 +1,5 @@
diff --git a/lib/nss.c b/lib/nss.c
-index 6e8d242..93dfe16 100644
+index 6e8d242..f5c69e6 100644
--- a/lib/nss.c
+++ b/lib/nss.c
@@ -844,6 +844,36 @@ static SECStatus SelectClientCert(void *arg, PRFileDesc *sock,
@@ -52,13 +52,8 @@ index 6e8d242..93dfe16 100644
break;
case CURL_SSLVERSION_TLSv1:
tlsv1 = PR_TRUE;
-@@ -1101,9 +1135,13 @@ CURLcode Curl_nss_connect(struct connectdata *conn, int sockindex)
- if(SSL_OptionSet(model, SSL_ENABLE_TLS, tlsv1) != SECSuccess)
- goto error;
-
-- if(SSL_OptionSet(model, SSL_V2_COMPATIBLE_HELLO, ssl2) != SECSuccess)
-+ if(SSL_OptionSet(model, SSL_V2_COMPATIBLE_HELLO, ssl2
-+ || data->state.ssl_connect_retry) != SECSuccess)
+@@ -1104,6 +1138,9 @@ CURLcode Curl_nss_connect(struct connectdata *conn, int sockindex)
+ if(SSL_OptionSet(model, SSL_V2_COMPATIBLE_HELLO, ssl2) != SECSuccess)
goto error;
+ /* reset the flag to avoid an infinite loop */
@@ -67,7 +62,7 @@ index 6e8d242..93dfe16 100644
/* enable all ciphers from enable_ciphers_by_default */
cipher_to_enable = enable_ciphers_by_default;
while (SSL_NULL_WITH_NULL_NULL != *cipher_to_enable) {
-@@ -1280,10 +1318,21 @@ CURLcode Curl_nss_connect(struct connectdata *conn, int sockindex)
+@@ -1280,10 +1317,21 @@ CURLcode Curl_nss_connect(struct connectdata *conn, int sockindex)
return CURLE_OK;
error:
diff --git a/curl.spec b/curl.spec
index b0b3be3..9c623ad 100644
--- a/curl.spec
+++ b/curl.spec
@@ -1,13 +1,14 @@
Summary: A utility for getting files from remote servers (FTP, HTTP, and others)
Name: curl
Version: 7.19.7
-Release: 2%{?dist}
+Release: 3%{?dist}
License: MIT
Group: Applications/Internet
Source: http://curl.haxx.se/download/%{name}-%{version}.tar.lzma
Source2: curlbuild.h
Patch1: curl-7.19.7-nss-nonblock.patch
Patch2: curl-7.19.7-ssl-retry.patch
+Patch3: curl-7.19.7-modelfree.patch
Patch101: curl-7.15.3-multilib.patch
Patch102: curl-7.16.0-privlibs.patch
Patch103: curl-7.19.4-debug.patch
@@ -69,9 +70,10 @@ use cURL's capabilities internally.
%prep
%setup -q
-# upstream patches (not yet applied)
+# upstream patches (already applied)
%patch1 -p1
%patch2 -p1
+%patch3 -p1
# Fedora patches
%patch101 -p1
@@ -102,7 +104,7 @@ make %{?_smp_mflags}
%check
export LD_LIBRARY_PATH=$RPM_BUILD_ROOT%{_libdir}
make %{?_smp_mflags} -C tests
-cd tests && ./runtests.pl -k -p -v
+cd tests && ./runtests.pl -a -k -p -v
%install
rm -rf $RPM_BUILD_ROOT
@@ -160,6 +162,12 @@ rm -rf $RPM_BUILD_ROOT
%{_datadir}/aclocal/libcurl.m4
%changelog
+* Thu Nov 12 2009 Kamil Dudka <kdudka@redhat.com> 7.19.7-3
+- fix crash on doubly closed NSPR descriptor, patch contributed
+ by Kevin Baughman (#534176)
+- new version of patch for broken TLS servers (#525496, #527771)
+
+
* Wed Nov 04 2009 Kamil Dudka <kdudka@redhat.com> 7.19.7-2
- increased release number (CVS problem)
reply other threads:[~2026-11-03 12:33 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=179370921475.1.4475562007464732634.rpms-curl-ee5ba870fa9e@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