Skip to content

Commit

Permalink
no need to reset buffer after send_msg() as that is done for us;
Browse files Browse the repository at this point in the history
patch from Mike Frysinger
  • Loading branch information
djmdjm committed Mar 10, 2021
1 parent bfe81f2 commit 701ed7b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions usr.bin/ssh/sftp-client.c
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>
*
Expand Down Expand Up @@ -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 */
Expand Down

0 comments on commit 701ed7b

Please sign in to comment.