Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

connection.c: fix possible close() call with fd == -1

  • Loading branch information...
commit 1df261e8c097d3cde5bb2c35412b4c2a85c5632c 1 parent c5e5297
@jsynacek authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  xinetd/connection.c
View
3  xinetd/connection.c
@@ -183,7 +183,8 @@ void conn_free( connection_s *cp, int release_mem )
}
cp->co_sp = NULL;
- CONN_CLOSE( cp ) ;
+ if ( CONN_DESCRIPTOR( cp ) > 0 )
+ CONN_CLOSE( cp ) ;
CLEAR( *cp ) ;
if (release_mem) {
Please sign in to comment.
Something went wrong with that request. Please try again.