diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | sshd.c | 5 |
2 files changed, 7 insertions, 3 deletions
@@ -26,6 +26,9 @@ | |||
26 | - markus@cvs.openssh.org 2001/02/13 22:49:40 | 26 | - markus@cvs.openssh.org 2001/02/13 22:49:40 |
27 | [auth1.c auth2.c] | 27 | [auth1.c auth2.c] |
28 | setproctitle(user) only if getpwnam succeeds | 28 | setproctitle(user) only if getpwnam succeeds |
29 | - markus@cvs.openbsd.org 2001/02/12 23:26:20 | ||
30 | [sshd.c] | ||
31 | missing memset; from solar@openwall.com | ||
29 | 32 | ||
30 | 20010214 | 33 | 20010214 |
31 | - (djm) Don't try to close PAM session or delete credentials if the | 34 | - (djm) Don't try to close PAM session or delete credentials if the |
@@ -3954,4 +3957,4 @@ | |||
3954 | - Wrote replacements for strlcpy and mkdtemp | 3957 | - Wrote replacements for strlcpy and mkdtemp |
3955 | - Released 1.0pre1 | 3958 | - Released 1.0pre1 |
3956 | 3959 | ||
3957 | $Id: ChangeLog,v 1.766 2001/02/15 03:14:11 mouring Exp $ | 3960 | $Id: ChangeLog,v 1.767 2001/02/15 03:17:13 mouring Exp $ |
@@ -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()); |