diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | clientloop.c | 10 | ||||
-rw-r--r-- | serverloop.c | 6 |
3 files changed, 13 insertions, 9 deletions
@@ -54,6 +54,10 @@ | |||
54 | Accepted publickey for ROOT from 127.0.0.1 port 42734 ssh2 | 54 | Accepted publickey for ROOT from 127.0.0.1 port 42734 ssh2 |
55 | becomes | 55 | becomes |
56 | Accepted publickey for root from 127.0.0.1 port 42734 ssh2 | 56 | Accepted publickey for root from 127.0.0.1 port 42734 ssh2 |
57 | - markus@cvs.openbsd.org 2001/11/09 18:59:23 | ||
58 | [clientloop.c serverloop.c] | ||
59 | don't memset too much memory, ok millert@ | ||
60 | original patch from jlk@kamens.brookline.ma.us via nalin@redhat.com | ||
57 | 61 | ||
58 | 20011109 | 62 | 20011109 |
59 | - (stevesk) auth-pam.c: use do_pam_authenticate(PAM_DISALLOW_NULL_AUTHTOK) | 63 | - (stevesk) auth-pam.c: use do_pam_authenticate(PAM_DISALLOW_NULL_AUTHTOK) |
@@ -6863,4 +6867,4 @@ | |||
6863 | - Wrote replacements for strlcpy and mkdtemp | 6867 | - Wrote replacements for strlcpy and mkdtemp |
6864 | - Released 1.0pre1 | 6868 | - Released 1.0pre1 |
6865 | 6869 | ||
6866 | $Id: ChangeLog,v 1.1650 2001/11/12 00:06:06 djm Exp $ | 6870 | $Id: ChangeLog,v 1.1651 2001/11/12 00:06:32 djm Exp $ |
diff --git a/clientloop.c b/clientloop.c index e8cd49988..cbcb1d199 100644 --- a/clientloop.c +++ b/clientloop.c | |||
@@ -59,7 +59,7 @@ | |||
59 | */ | 59 | */ |
60 | 60 | ||
61 | #include "includes.h" | 61 | #include "includes.h" |
62 | RCSID("$OpenBSD: clientloop.c,v 1.86 2001/10/24 19:57:40 markus Exp $"); | 62 | RCSID("$OpenBSD: clientloop.c,v 1.87 2001/11/09 18:59:23 markus Exp $"); |
63 | 63 | ||
64 | #include "ssh.h" | 64 | #include "ssh.h" |
65 | #include "ssh1.h" | 65 | #include "ssh1.h" |
@@ -346,8 +346,8 @@ client_wait_until_can_do_something(fd_set **readsetp, fd_set **writesetp, | |||
346 | if (session_closed && !channel_still_open() && | 346 | if (session_closed && !channel_still_open() && |
347 | !packet_have_data_to_write()) { | 347 | !packet_have_data_to_write()) { |
348 | /* clear mask since we did not call select() */ | 348 | /* clear mask since we did not call select() */ |
349 | memset(*readsetp, 0, *maxfdp); | 349 | memset(*readsetp, 0, *nallocp); |
350 | memset(*writesetp, 0, *maxfdp); | 350 | memset(*writesetp, 0, *nallocp); |
351 | return; | 351 | return; |
352 | } else { | 352 | } else { |
353 | FD_SET(connection_in, *readsetp); | 353 | FD_SET(connection_in, *readsetp); |
@@ -375,8 +375,8 @@ client_wait_until_can_do_something(fd_set **readsetp, fd_set **writesetp, | |||
375 | * We have to return, because the mainloop checks for the flags | 375 | * We have to return, because the mainloop checks for the flags |
376 | * set by the signal handlers. | 376 | * set by the signal handlers. |
377 | */ | 377 | */ |
378 | memset(*readsetp, 0, *maxfdp); | 378 | memset(*readsetp, 0, *nallocp); |
379 | memset(*writesetp, 0, *maxfdp); | 379 | memset(*writesetp, 0, *nallocp); |
380 | 380 | ||
381 | if (errno == EINTR) | 381 | if (errno == EINTR) |
382 | return; | 382 | return; |
diff --git a/serverloop.c b/serverloop.c index 983fe7443..0da805f09 100644 --- a/serverloop.c +++ b/serverloop.c | |||
@@ -35,7 +35,7 @@ | |||
35 | */ | 35 | */ |
36 | 36 | ||
37 | #include "includes.h" | 37 | #include "includes.h" |
38 | RCSID("$OpenBSD: serverloop.c,v 1.82 2001/10/10 22:18:47 markus Exp $"); | 38 | RCSID("$OpenBSD: serverloop.c,v 1.83 2001/11/09 18:59:23 markus Exp $"); |
39 | 39 | ||
40 | #include "xmalloc.h" | 40 | #include "xmalloc.h" |
41 | #include "packet.h" | 41 | #include "packet.h" |
@@ -272,8 +272,8 @@ wait_until_can_do_something(fd_set **readsetp, fd_set **writesetp, int *maxfdp, | |||
272 | ret = select((*maxfdp)+1, *readsetp, *writesetp, NULL, tvp); | 272 | ret = select((*maxfdp)+1, *readsetp, *writesetp, NULL, tvp); |
273 | 273 | ||
274 | if (ret == -1) { | 274 | if (ret == -1) { |
275 | memset(*readsetp, 0, *maxfdp); | 275 | memset(*readsetp, 0, *nallocp); |
276 | memset(*writesetp, 0, *maxfdp); | 276 | memset(*writesetp, 0, *nallocp); |
277 | if (errno != EINTR) | 277 | if (errno != EINTR) |
278 | error("select: %.100s", strerror(errno)); | 278 | error("select: %.100s", strerror(errno)); |
279 | } else if (ret == 0 && client_alive_scheduled) | 279 | } else if (ret == 0 && client_alive_scheduled) |