From fee7a7bc52d2017ae1a6dd9daf5e7173770971cc Mon Sep 17 00:00:00 2001 From: Magnus Ihse Bursie Date: Wed, 22 Jan 2025 19:16:50 +0100 Subject: [PATCH 1/3] Set SIGPIPE to SIG_IGN. Signed-off-by: Magnus Ihse Bursie --- main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.c b/main.c index be0e3cd75..8a238195b 100644 --- a/main.c +++ b/main.c @@ -1796,6 +1796,7 @@ int main(int argc, char *argv[]) #endif #ifndef _WIN32 struct sigaction sa; + struct sigaction sa_ignore; struct utsname utsbuf; #endif @@ -2342,6 +2343,7 @@ int main(int argc, char *argv[]) #ifndef _WIN32 memset(&sa, 0, sizeof(sa)); + memset(&sa, 0, sizeof(sa_ignore)); sa.sa_handler = handle_signal; checked_sigaction(SIGTERM, &sa, NULL); @@ -2349,6 +2351,9 @@ int main(int argc, char *argv[]) checked_sigaction(SIGHUP, &sa, NULL); checked_sigaction(SIGUSR1, &sa, NULL); checked_sigaction(SIGUSR2, &sa, NULL); + + sa_ignore.sa_handler = SIG_IGN; + checked_sigaction(SIGPIPE, &sa_ignore, NULL); #else /* _WIN32 */ SetConsoleCtrlHandler(console_ctrl_handler, TRUE /* Add */); #endif -- GitLab From 778fe037af3b3adbaa39bfb2ff1a82f96954f1f1 Mon Sep 17 00:00:00 2001 From: Magnus Ihse Bursie Date: Thu, 23 Jan 2025 23:37:45 +0100 Subject: [PATCH 2/3] Remove sa_ignore Signed-off-by: Magnus Ihse Bursie --- main.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/main.c b/main.c index 8a238195b..50d93af2e 100644 --- a/main.c +++ b/main.c @@ -1796,7 +1796,6 @@ int main(int argc, char *argv[]) #endif #ifndef _WIN32 struct sigaction sa; - struct sigaction sa_ignore; struct utsname utsbuf; #endif @@ -2343,7 +2342,6 @@ int main(int argc, char *argv[]) #ifndef _WIN32 memset(&sa, 0, sizeof(sa)); - memset(&sa, 0, sizeof(sa_ignore)); sa.sa_handler = handle_signal; checked_sigaction(SIGTERM, &sa, NULL); @@ -2352,8 +2350,8 @@ int main(int argc, char *argv[]) checked_sigaction(SIGUSR1, &sa, NULL); checked_sigaction(SIGUSR2, &sa, NULL); - sa_ignore.sa_handler = SIG_IGN; - checked_sigaction(SIGPIPE, &sa_ignore, NULL); + sa.sa_handler = SIG_IGN; + checked_sigaction(SIGPIPE, &sa, NULL); #else /* _WIN32 */ SetConsoleCtrlHandler(console_ctrl_handler, TRUE /* Add */); #endif -- GitLab From 70bb52cdd987263ab5e00431dc34b8a0ea5a6e89 Mon Sep 17 00:00:00 2001 From: Magnus Ihse Bursie Date: Fri, 25 Jul 2025 12:07:03 +0200 Subject: [PATCH 3/3] Update changelog Signed-off-by: Magnus Ihse Bursie --- www/changelog.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/www/changelog.xml b/www/changelog.xml index f875de63b..50fb1568d 100644 --- a/www/changelog.xml +++ b/www/changelog.xml @@ -37,6 +37,7 @@
  • Fix bug that prevented GlobalProtect ESP from working correctly when the server sends both Legacy IP and IPv6 versions of the ESP "magic ping" address, but no IPv6 client address (!565)
  • Use the full URI (including "usergroup" or path) as specified in --server for all requests during authentication instead of only the first one (!560).
  • Deal with more Juniper NC framing idiocy (#779).
  • +
  • Stop OpenConnect from exiting with SIGPIPE(#783).

  • OpenConnect v9.12 -- GitLab