diff options
author | djm@openbsd.org <djm@openbsd.org> | 2021-03-10 05:58:45 +0100 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2021-03-13 03:06:10 +0100 |
commit | e5895e8ecfac65086ea6b34d0d168409a66a15e1 (patch) | |
tree | 3b496c68a31f55bfa9d3fda3182d126370ded2bb /sftp-client.c | |
parent | upstream: Add TEST_SSH_MODULI_FILE variable to allow overriding of the (diff) | |
download | openssh-e5895e8ecfac65086ea6b34d0d168409a66a15e1.tar.xz openssh-e5895e8ecfac65086ea6b34d0d168409a66a15e1.zip |
upstream: no need to reset buffer after send_msg() as that is done
for us; patch from Mike Frysinger
OpenBSD-Commit-ID: 565516495ff8362a38231e0f1a087b8ae66da59c
Diffstat (limited to '')
-rw-r--r-- | sftp-client.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sftp-client.c b/sftp-client.c index 4603b0098..7465c3d97 100644 --- a/sftp-client.c +++ b/sftp-client.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sftp-client.c,v 1.139 2020/12/04 02:41:10 djm Exp $ */ +/* $OpenBSD: sftp-client.c,v 1.140 2021/03/10 04:58:45 djm Exp $ */ /* * Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org> * @@ -418,8 +418,6 @@ do_init(int fd_in, int fd_out, u_int transfer_buflen, u_int num_requests, send_msg(ret, msg); - sshbuf_reset(msg); - get_msg_extended(ret, msg, 1); /* Expecting a VERSION reply */ |