diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2001-02-15 03:17:13 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2001-02-15 03:17:13 +0000 |
commit | 5393f9360d95e42556855c184f529e7a6792f711 (patch) | |
tree | 2b2f6f96d23158da42c36cd026752b887b4e7f05 /sshd.c | |
parent | c1ba31fadc1146ed56bf33ae0fca2cfe1f1b9f94 (diff) |
- markus@cvs.openbsd.org 2001/02/12 23:26:20
[sshd.c]
missing memset; from solar@openwall.com
Diffstat (limited to 'sshd.c')
-rw-r--r-- | sshd.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -40,7 +40,7 @@ | |||
40 | */ | 40 | */ |
41 | 41 | ||
42 | #include "includes.h" | 42 | #include "includes.h" |
43 | RCSID("$OpenBSD: sshd.c,v 1.166 2001/02/11 12:59:25 markus Exp $"); | 43 | RCSID("$OpenBSD: sshd.c,v 1.167 2001/02/12 23:26:20 markus Exp $"); |
44 | 44 | ||
45 | #include <openssl/dh.h> | 45 | #include <openssl/dh.h> |
46 | #include <openssl/bn.h> | 46 | #include <openssl/bn.h> |
@@ -324,7 +324,8 @@ sshd_exchange_identification(int sock_in, int sock_out) | |||
324 | fatal_cleanup(); | 324 | fatal_cleanup(); |
325 | } | 325 | } |
326 | 326 | ||
327 | /* Read other side\'s version identification. */ | 327 | /* Read other side's version identification. */ |
328 | memset(buf, 0, sizeof(buf)); | ||
328 | for (i = 0; i < sizeof(buf) - 1; i++) { | 329 | for (i = 0; i < sizeof(buf) - 1; i++) { |
329 | if (atomicio(read, sock_in, &buf[i], 1) != 1) { | 330 | if (atomicio(read, sock_in, &buf[i], 1) != 1) { |
330 | log("Did not receive ident string from %s.", get_remote_ipaddr()); | 331 | log("Did not receive ident string from %s.", get_remote_ipaddr()); |