diff options
author | Damien Miller <djm@mindrot.org> | 2001-11-12 01:06:32 +0100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2001-11-12 01:06:32 +0100 |
commit | 79faeff2c1e9e25a0d7d9b11f168a96ca02d46f7 (patch) | |
tree | 9a3c1e9e9ccaed3e078c96294052d0519996bc4c /clientloop.c | |
parent | - markus@cvs.openbsd.org 2001/11/08 20:02:24 (diff) | |
download | openssh-79faeff2c1e9e25a0d7d9b11f168a96ca02d46f7.tar.xz openssh-79faeff2c1e9e25a0d7d9b11f168a96ca02d46f7.zip |
- markus@cvs.openbsd.org 2001/11/09 18:59:23
[clientloop.c serverloop.c]
don't memset too much memory, ok millert@
original patch from jlk@kamens.brookline.ma.us via nalin@redhat.com
Diffstat (limited to 'clientloop.c')
-rw-r--r-- | clientloop.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/clientloop.c b/clientloop.c index e8cd49988..cbcb1d199 100644 --- a/clientloop.c +++ b/clientloop.c @@ -59,7 +59,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: clientloop.c,v 1.86 2001/10/24 19:57:40 markus Exp $"); +RCSID("$OpenBSD: clientloop.c,v 1.87 2001/11/09 18:59:23 markus Exp $"); #include "ssh.h" #include "ssh1.h" @@ -346,8 +346,8 @@ client_wait_until_can_do_something(fd_set **readsetp, fd_set **writesetp, if (session_closed && !channel_still_open() && !packet_have_data_to_write()) { /* clear mask since we did not call select() */ - memset(*readsetp, 0, *maxfdp); - memset(*writesetp, 0, *maxfdp); + memset(*readsetp, 0, *nallocp); + memset(*writesetp, 0, *nallocp); return; } else { FD_SET(connection_in, *readsetp); @@ -375,8 +375,8 @@ client_wait_until_can_do_something(fd_set **readsetp, fd_set **writesetp, * We have to return, because the mainloop checks for the flags * set by the signal handlers. */ - memset(*readsetp, 0, *maxfdp); - memset(*writesetp, 0, *maxfdp); + memset(*readsetp, 0, *nallocp); + memset(*writesetp, 0, *nallocp); if (errno == EINTR) return; |