diff --git a/src/frontend/mosh-server.cc b/src/frontend/mosh-server.cc index 559ae3e..40584ad 100644 --- a/src/frontend/mosh-server.cc +++ b/src/frontend/mosh-server.cc @@ -413,6 +413,11 @@ int run_server( const char *desired_ip, const char *desired_port, perror( "dup2" ); exit( 1 ); } + + if ( close( nullfd ) < 0 ) { + perror( "close" ); + exit( 1 ); + } } char utmp_entry[ 64 ] = { 0 };