summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2001-02-12 23:26:21 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2001-02-12 23:26:21 +0000
commit583cdb80a976bfec067acc375bc9c605f597235e (patch)
tree829e95b1f48e4a4df706b704063e375cc1b9095e
parentf51c6eae2e3cbf5ec766efa1b37285f1e4002e63 (diff)
missing memset; from solar@openwall.com
-rw-r--r--usr.bin/ssh/sshd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/ssh/sshd.c b/usr.bin/ssh/sshd.c
index 236021c84b5..2ca1294ad73 100644
--- a/usr.bin/ssh/sshd.c
+++ b/usr.bin/ssh/sshd.c
@@ -40,7 +40,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: sshd.c,v 1.166 2001/02/11 12:59:25 markus Exp $");
+RCSID("$OpenBSD: sshd.c,v 1.167 2001/02/12 23:26:20 markus Exp $");
#include <openssl/dh.h>
#include <openssl/bn.h>
@@ -315,7 +315,8 @@ sshd_exchange_identification(int sock_in, int sock_out)
fatal_cleanup();
}
- /* Read other side\'s version identification. */
+ /* Read other side's version identification. */
+ memset(buf, 0, sizeof(buf));
for (i = 0; i < sizeof(buf) - 1; i++) {
if (atomicio(read, sock_in, &buf[i], 1) != 1) {
log("Did not receive ident string from %s.", get_remote_ipaddr());