summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-02-15 03:17:13 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-02-15 03:17:13 +0000
commit5393f9360d95e42556855c184f529e7a6792f711 (patch)
tree2b2f6f96d23158da42c36cd026752b887b4e7f05
parentc1ba31fadc1146ed56bf33ae0fca2cfe1f1b9f94 (diff)
- markus@cvs.openbsd.org 2001/02/12 23:26:20
[sshd.c] missing memset; from solar@openwall.com
-rw-r--r--ChangeLog5
-rw-r--r--sshd.c5
2 files changed, 7 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 4827a8a3c..3df246d3c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
3020010214 3320010214
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 $
diff --git a/sshd.c b/sshd.c
index dd8f6d83d..86bfb6519 100644
--- a/sshd.c
+++ b/sshd.c
@@ -40,7 +40,7 @@
40 */ 40 */
41 41
42#include "includes.h" 42#include "includes.h"
43RCSID("$OpenBSD: sshd.c,v 1.166 2001/02/11 12:59:25 markus Exp $"); 43RCSID("$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());