[openssh-commits] [openssh] 06/15: upstream: memleaks of request packet and hostkeys blob; ok
git+noreply at mindrot.org
git+noreply at mindrot.org
Mon Sep 15 16:13:45 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 0088b3f0ab2c615ae95b9f374963abaa0ab837ec
Author: djm at openbsd.org <djm at openbsd.org>
AuthorDate: Mon Sep 15 04:47:49 2025 +0000
upstream: memleaks of request packet and hostkeys blob; ok
dtucker@
OpenBSD-Commit-ID: 313b13a8e36b4ca8e064ee56792e67e0670a386a
---
monitor.c | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/monitor.c b/monitor.c
index df9bde2e9..563a0f0cb 100644
--- a/monitor.c
+++ b/monitor.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: monitor.c,v 1.247 2024/12/03 22:30:03 jsg Exp $ */
+/* $OpenBSD: monitor.c,v 1.248 2025/09/15 04:47:49 djm Exp $ */
/*
* Copyright 2002 Niels Provos <provos at citi.umich.edu>
* Copyright 2002 Markus Friedl <markus at openbsd.org>
@@ -567,16 +567,14 @@ monitor_reset_key_state(void)
}
int
-mm_answer_state(struct ssh *ssh, int sock, struct sshbuf *m)
+mm_answer_state(struct ssh *ssh, int sock, struct sshbuf *unused)
{
- struct sshbuf *inc = NULL, *hostkeys = NULL;
+ struct sshbuf *m = NULL, *inc = NULL, *hostkeys = NULL;
struct sshbuf *opts = NULL, *confdata = NULL;
struct include_item *item = NULL;
int postauth;
int r;
- sshbuf_reset(m);
-
debug_f("config len %zu", sshbuf_len(cfg));
if ((m = sshbuf_new()) == NULL ||
@@ -634,9 +632,10 @@ mm_answer_state(struct ssh *ssh, int sock, struct sshbuf *m)
sshbuf_free(inc);
sshbuf_free(opts);
sshbuf_free(confdata);
+ sshbuf_free(hostkeys);
mm_request_send(sock, MONITOR_ANS_STATE, m);
-
+ sshbuf_free(m);
debug3_f("done");
return (0);
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list