no need to reset buffer after send_msg() as that is done for us;
authordjm <djm@openbsd.org>
Wed, 10 Mar 2021 04:58:45 +0000 (04:58 +0000)
committerdjm <djm@openbsd.org>
Wed, 10 Mar 2021 04:58:45 +0000 (04:58 +0000)
patch from Mike Frysinger

usr.bin/ssh/sftp-client.c

index a40c91c..b047a7e 100644 (file)
@@ -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>
  *
@@ -404,8 +404,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 */