[openssh-commits] [openssh] 04/04: upstream: don't leak argument list; bz3404, reported by Balu
git+noreply at mindrot.org
git+noreply at mindrot.org
Sun Mar 20 19:54:54 AEDT 2022
This is an automated email from the git hooks/post-receive script.
djm pushed a commit to branch master
in repository openssh.
commit 16ea8b85838dd7a4dbeba4e51ac4f43fd68b1e5b
Author: djm at openbsd.org <djm at openbsd.org>
Date: Sun Mar 20 08:52:17 2022 +0000
upstream: don't leak argument list; bz3404, reported by Balu
Gajjala ok dtucker@
OpenBSD-Commit-ID: fddc32d74e5dd5cff1a49ddd6297b0867eae56a6
---
scp.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scp.c b/scp.c
index 04f1a649..c36d66aa 100644
--- a/scp.c
+++ b/scp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: scp.c,v 1.246 2022/02/23 19:01:00 deraadt Exp $ */
+/* $OpenBSD: scp.c,v 1.247 2022/03/20 08:52:17 djm Exp $ */
/*
* scp - secure remote copy. This is basically patched BSD rcp which
* uses ssh to do the data transfer (instead of using rcmd).
@@ -968,7 +968,7 @@ do_sftp_connect(char *host, char *user, int port, char *sftp_direct,
return NULL;
} else {
- args.list = NULL;
+ freeargs(&args);
addargs(&args, "sftp-server");
if (do_cmd(sftp_direct, host, NULL, -1, 0, "sftp",
reminp, remoutp, pidp) < 0)
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list