public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/curl] curl-v8.23.0-3: fix duplicated SSL handshake with multi interface and proxy (#788526)
@ 2026-11-03 12:34 Kamil Dudka
  0 siblings, 0 replies; only message in thread
From: Kamil Dudka @ 2026-11-03 12:34 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/curl
Branch : curl-v8.23.0-3
Commit : e6d221c6039a24f4c30572947cdf2d7970733935
Author : Kamil Dudka <kdudka@redhat.com>
Date   : 2012-06-09T12:52:25+02:00
Stats  : +50/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/curl/c/e6d221c6039a24f4c30572947cdf2d7970733935?branch=curl-v8.23.0-3

Log:
fix duplicated SSL handshake with multi interface and proxy (#788526)

---
diff --git a/0002-curl-7.26.0-68857e40.patch b/0002-curl-7.26.0-68857e40.patch
new file mode 100644
index 0000000..faaf9c8
--- /dev/null
+++ b/0002-curl-7.26.0-68857e40.patch
@@ -0,0 +1,42 @@
+From 68857e40d69ef792bfcc6d7395c65305a4117c51 Mon Sep 17 00:00:00 2001
+From: Kamil Dudka <kdudka@redhat.com>
+Date: Fri, 8 Jun 2012 23:02:57 +0200
+Subject: [PATCH] ssl: fix duplicated SSL handshake with multi interface and proxy
+
+Bug: https://bugzilla.redhat.com/788526
+Reported by: Enrico Scholz
+---
+ lib/sslgen.c  |   10 +++++-----
+ 1 files changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/lib/sslgen.c b/lib/sslgen.c
+index a77fd78..14649a9 100644
+--- a/lib/sslgen.c
++++ b/lib/sslgen.c
+@@ -211,18 +211,18 @@ CURLcode
+ Curl_ssl_connect_nonblocking(struct connectdata *conn, int sockindex,
+                              bool *done)
+ {
+-#ifdef curlssl_connect_nonblocking
+   CURLcode res;
+   /* mark this is being ssl requested from here on. */
+   conn->ssl[sockindex].use = TRUE;
++#ifdef curlssl_connect_nonblocking
+   res = curlssl_connect_nonblocking(conn, sockindex, done);
+-  if(!res && *done)
+-    Curl_pgrsTime(conn->data, TIMER_APPCONNECT); /* SSL is connected */
+-  return res;
+ #else
+   *done = TRUE; /* fallback to BLOCKING */
+-  return Curl_ssl_connect(conn, sockindex);
++  res = curlssl_connect(conn, sockindex);
+ #endif /* non-blocking connect support */
++  if(!res && *done)
++    Curl_pgrsTime(conn->data, TIMER_APPCONNECT); /* SSL is connected */
++  return res;
+ }
+ 
+ /*
+-- 
+1.7.1
+

diff --git a/curl.spec b/curl.spec
index 31d6b5e..9ba2adf 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.26.0
-Release: 3%{?dist}
+Release: 4%{?dist}
 License: MIT
 Group: Applications/Internet
 Source: http://curl.haxx.se/download/%{name}-%{version}.tar.lzma
@@ -11,6 +11,9 @@ Source3: hide_selinux.c
 # use human-readable error messages provided by NSS
 Patch1: 0001-curl-7.26.0-72f4b534.patch
 
+# fix duplicated SSL handshake with multi interface and proxy (#788526)
+Patch2: 0002-curl-7.26.0-68857e40.patch
+
 # patch making libcurl multilib ready
 Patch101: 0101-curl-7.25.0-multilib.patch
 
@@ -111,6 +114,7 @@ documentation of the library, too.
 
 # upstream patches
 %patch1 -p1
+%patch2 -p1
 
 # Fedora patches
 %patch101 -p1
@@ -233,6 +237,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_datadir}/aclocal/libcurl.m4
 
 %changelog
+* Sat Jun 09 2012 Kamil Dudka <kdudka@redhat.com> 7.26.0-4
+- fix duplicated SSL handshake with multi interface and proxy (#788526)
+
 * Wed May 30 2012 Karsten Hopp <karsten@redhat.com> 7.26.0-3
 - disable test 1319 on ppc64, server times out
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-03 12:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-03 12:34 [rpms/curl] curl-v8.23.0-3: fix duplicated SSL handshake with multi interface and proxy (#788526) Kamil Dudka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox