public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jindrich Novy <jnovy@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/curl] curl-v8.23.0-3: - do not attempt to close a bad socket (#427966), thanks to Caolam McNamara
Date: Tue, 03 Nov 2026 12:32:51 GMT [thread overview]
Message-ID: <179370917122.1.14806124744955899797.rpms-curl-2cda17b6c81c@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/curl
Branch : curl-v8.23.0-3
Commit : 2cda17b6c81c2b6d9ebf7ae73d9fd969f971345a
Author : Jindrich Novy <jnovy@fedoraproject.org>
Date : 2008-01-08T14:18:28+00:00
Stats : +20/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/curl/c/2cda17b6c81c2b6d9ebf7ae73d9fd969f971345a?branch=curl-v8.23.0-3
Log:
- do not attempt to close a bad socket (#427966), thanks to Caolam McNamara
---
diff --git a/curl-7.17.1-badsocket.patch b/curl-7.17.1-badsocket.patch
new file mode 100644
index 0000000..7f092ae
--- /dev/null
+++ b/curl-7.17.1-badsocket.patch
@@ -0,0 +1,13 @@
+diff -up curl-7.17.1/lib/ftp.c.badsocket curl-7.17.1/lib/ftp.c
+--- curl-7.17.1/lib/ftp.c.badsocket 2007-10-27 00:25:19.000000000 +0200
++++ curl-7.17.1/lib/ftp.c 2008-01-08 15:09:03.000000000 +0100
+@@ -3228,7 +3228,8 @@ static CURLcode Curl_ftp_done(struct con
+ /* Note that we keep "use" set to TRUE since that (next) connection is
+ still requested to use SSL */
+ }
+- sclose(conn->sock[SECONDARYSOCKET]);
++ if(CURL_SOCKET_BAD != conn->sock[SECONDARYSOCKET])
++ sclose(conn->sock[SECONDARYSOCKET]);
+
+ conn->sock[SECONDARYSOCKET] = CURL_SOCKET_BAD;
+
diff --git a/curl.spec b/curl.spec
index d8fbf99..8176a6a 100644
--- a/curl.spec
+++ b/curl.spec
@@ -1,7 +1,7 @@
Summary: A utility for getting files from remote servers (FTP, HTTP, and others)
Name: curl
Version: 7.17.1
-Release: 4%{?dist}
+Release: 5%{?dist}
License: MIT
Group: Applications/Internet
Source: http://curl.haxx.se/download/%{name}-%{version}.tar.bz2
@@ -9,6 +9,7 @@ Patch1: curl-7.15.3-multilib.patch
Patch2: curl-7.16.0-privlibs.patch
Patch3: curl-7.16.4-curl-config.patch
Patch4: curl-7.17.1-sslgen.patch
+Patch5: curl-7.17.1-badsocket.patch
Provides: webclient
URL: http://curl.haxx.se/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -50,6 +51,7 @@ use cURL's capabilities internally.
%patch2 -p1 -b .privlibs
%patch3 -p1 -b .curl-config
%patch4 -p1 -b .sslgen
+%patch5 -p1 -b .badsocket
%build
export CPPFLAGS="$(pkg-config --cflags nss) -DHAVE_PK11_CREATEGENERICOBJECT"
@@ -106,6 +108,10 @@ rm -rf $RPM_BUILD_ROOT
%{_datadir}/aclocal/libcurl.m4
%changelog
+* Tue Jan 8 2008 Jindrich Novy <jnovy@redhat.com> 7.17.1-5
+- do not attempt to close a bad socket (#427966),
+ thanks to Caolam McNamara
+
* Tue Dec 4 2007 Jindrich Novy <jnovy@redhat.com> 7.17.1-4
- rebuild because of the openldap soname bump
- remove old nsspem patch
reply other threads:[~2026-11-03 12:32 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=179370917122.1.14806124744955899797.rpms-curl-2cda17b6c81c@fedoraproject.org \
--to=jnovy@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