Formating changes. Also, explictly close the client_fd when the
connections are destroyed.
This commit is contained in:
parent
101cf497d5
commit
5b11a1e2c9
@ -1,4 +1,4 @@
|
||||
/* $Id: reqs.c,v 1.13 2001-05-27 02:29:06 rjkaes Exp $
|
||||
/* $Id: reqs.c,v 1.14 2001-05-30 15:45:14 rjkaes Exp $
|
||||
*
|
||||
* This is where all the work in tinyproxy is actually done. Incoming
|
||||
* connections have a new thread created for them. The thread then
|
||||
@ -578,7 +578,8 @@ static void initialize_conn(struct conn_s *connptr)
|
||||
|
||||
static void destroy_conn(struct conn_s *connptr)
|
||||
{
|
||||
connptr->client_fd = -1;
|
||||
if (connptr->client_fd != -1)
|
||||
close(connptr->client_fd);
|
||||
if (connptr->server_fd != -1)
|
||||
close(connptr->server_fd);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user