diff options
-rw-r--r-- | mbbsd/mbbsd.c | 3 |
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; } |