Skip to content

Commit

Permalink
upstream: Remove unused buf, last user was removed when switching
Browse files Browse the repository at this point in the history
to the sshbuf API. Patch from Sebastian Andrzej Siewior.

OpenBSD-Commit-ID: 250fa17f0cec01039cc4abd95917d9746e24c889
  • Loading branch information
daztucker committed Sep 16, 2020
1 parent c3c786c commit d6f507f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions clientloop.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $OpenBSD: clientloop.c,v 1.345 2020/07/03 05:09:06 dtucker Exp $ */
/* $OpenBSD: clientloop.c,v 1.346 2020/09/16 03:07:31 dtucker Exp $ */
/*
* Author: Tatu Ylonen <[email protected]>
* Copyright (c) 1995 Tatu Ylonen <[email protected]>, Espoo, Finland
Expand Down Expand Up @@ -1238,7 +1238,6 @@ client_loop(struct ssh *ssh, int have_pty, int escape_char_arg,
int r, max_fd = 0, max_fd2 = 0, len;
u_int64_t ibytes, obytes;
u_int nalloc = 0;
char buf[100];

debug("Entering interactive session.");

Expand Down Expand Up @@ -1467,7 +1466,6 @@ client_loop(struct ssh *ssh, int have_pty, int escape_char_arg,
}

/* Clear and free any buffers. */
explicit_bzero(buf, sizeof(buf));
sshbuf_free(stderr_buffer);

/* Report bytes transferred, and transfer rates. */
Expand Down

0 comments on commit d6f507f

Please sign in to comment.