- Update to 8.11.1: * Security fixes: - netrc and redirect credential leak [bsc#1234068, CVE-2024-11053] * Bugfixes: - build: fix ECH to always enable HTTPS RR - cookie: treat cookie name case sensitively - curl-rustls.m4: keep existing 'CPPFLAGS'/'LDFLAGS' when detected - curl: use realtime in trace timestamps - digest: produce a shorter cnonce in Digest headers - docs: document default 'User-Agent' - docs: suggest --ssl-reqd instead of --ftp-ssl - duphandle: also init netrc - hostip: don't use the resolver for FQDN localhost - http_negotiate: allow for a one byte larger channel binding buffer - krb5: fix socket/sockindex confusion, MSVC compiler warnings - libssh: use libssh sftp_aio to upload file - libssh: when using IPv6 numerical address, add brackets - mime: fix reader stall on small read lengths - mk-ca-bundle: remove CKA_NSS_SERVER_DISTRUST_AFTER conditions - mprintf: fix the integer overflow checks - multi: fix callback for 'CURLMOPT_TIMERFUNCTION' not being called again when... - netrc: address several netrc parser flaws - netrc: support large file, longer lines, longer tokens - nghttp2: use custom memory functions - OpenSSL: improvde error message on expired certificate - openssl: remove three "Useless Assignments" - openssl: stop using SSL_CTX_ function prefix for our functions - pytest: add test for use of CURLMOPT_MAX_HOST_CONNECTIONS - rtsp: check EOS in the RTSP receive and return an error code - schannel: remove TLS 1.3 ciphersuite-list support OBS-URL: https://build.opensuse.org/request/show/1230013 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/curl?expand=0&rev=385
33 lines
912 B
Diff
33 lines
912 B
Diff
From 3eec5afbd0b6377eca893c392569b2faf094d970 Mon Sep 17 00:00:00 2001
|
|
From: Daniel Stenberg <daniel@haxx.se>
|
|
Date: Mon, 5 Aug 2024 00:17:17 +0200
|
|
Subject: [PATCH] sigpipe: init the struct so that first apply ignores
|
|
|
|
Initializes 'no_signal' to TRUE, so that a call to sigpipe_apply() after
|
|
init ignores the signal (unless CURLOPT_NOSIGNAL) is set.
|
|
|
|
I have read the existing code multiple times now and I think it gets the
|
|
initial state reversed this missing to ignore.
|
|
|
|
Regression from 17e6f06ea37136c36d27
|
|
|
|
Reported-by: Rasmus Thomsen
|
|
Fixes #14344
|
|
Closes #14390
|
|
---
|
|
lib/sigpipe.h | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/lib/sigpipe.h b/lib/sigpipe.h
|
|
index b91a2f51333956..d78afd905d3414 100644
|
|
--- a/lib/sigpipe.h
|
|
+++ b/lib/sigpipe.h
|
|
@@ -39,6 +39,7 @@ struct sigpipe_ignore {
|
|
static void sigpipe_init(struct sigpipe_ignore *ig)
|
|
{
|
|
memset(ig, 0, sizeof(*ig));
|
|
+ ig->no_signal = TRUE;
|
|
}
|
|
|
|
/*
|