[openssh-commits] [openssh] 01/03: upstream: fix memory leak in mux_client_request_stdio_fwd GHPR#575
git+noreply at mindrot.org
git+noreply at mindrot.org
Tue Sep 30 10:58:44 AEST 2025
This is an automated email from the git hooks/post-receive script.
djm pushed a commit to branch master
in repository openssh.
commit 42b14ff1e06fd683c7d15a6b2816c16108873a5a
Author: djm at openbsd.org <djm at openbsd.org>
AuthorDate: Tue Sep 30 00:03:09 2025 +0000
upstream: fix memory leak in mux_client_request_stdio_fwd GHPR#575
by Boris Tonofa; ok dtucker
OpenBSD-Commit-ID: 410cdd05242304bd0196b9172ce5fcaf89d2d8ce
---
mux.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/mux.c b/mux.c
index 7dd1309fa..37bcb9103 100644
--- a/mux.c
+++ b/mux.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mux.c,v 1.106 2025/09/15 04:48:29 djm Exp $ */
+/* $OpenBSD: mux.c,v 1.107 2025/09/30 00:03:09 djm Exp $ */
/*
* Copyright (c) 2002-2008 Damien Miller <djm at openbsd.org>
*
@@ -2195,8 +2195,10 @@ mux_client_request_stdio_fwd(int fd)
sshbuf_reset(m);
if (mux_client_read_packet(fd, m) != 0) {
if (errno == EPIPE ||
- (errno == EINTR && muxclient_terminate != 0))
+ (errno == EINTR && muxclient_terminate != 0)) {
+ sshbuf_free(m);
return 0;
+ }
fatal_f("mux_client_read_packet: %s", strerror(errno));
}
fatal_f("master returned unexpected message %u", type);
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list