summaryrefslogtreecommitdiffstats
path: root/mbbsd/mbbsd.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/mbbsd.c')
-rw-r--r--mbbsd/mbbsd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c
index c6575a39..8bdbaa1d 100644
--- a/mbbsd/mbbsd.c
+++ b/mbbsd/mbbsd.c
@@ -1385,7 +1385,8 @@ daemon_login(int argc, char *argv[], char *envp[])
if( (!overloading && nblocked) ||
(overloading && nblocked == OVERLOADBLOCKFDS) ){
for( i = 0 ; i < OVERLOADBLOCKFDS ; ++i )
- if( blockfd[i] != csock )
+ if( blockfd[i] != csock && blockfd[i] != msock )
+ /* blockfd[i] should not be msock, but it happened */
close(blockfd[i]);
nblocked = 0;
}