Skip to content

Commit

Permalink
HandleConnection is never passed a NULL connection
Browse files Browse the repository at this point in the history
Main thread would segfault otherwise.
  • Loading branch information
dottedmag committed Mar 28, 2012
1 parent f499baa commit a26a729
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/cf-serverd.c
Expand Up @@ -880,12 +880,6 @@ static void *HandleConnection(ServerConnectionState *conn)
# endif
#endif

if (conn == NULL)
{
CfDebug("Null connection\n");
return NULL;
}

if (!ThreadLock(cft_server_children))
{
DeleteConn(conn);
Expand Down

0 comments on commit a26a729

Please sign in to comment.