Commit c1034058 authored by Philipp Schafft's avatar Philipp Schafft 🦁

Fix: do not close(-1) on Keep-Alive clients

parent 5e8b2478
......@@ -1604,7 +1604,8 @@ void connection_close(connection_t *con)
if (!con)
return;
sock_close(con->sock);
if (con->sock != -1) /* TODO: do not use magic */
sock_close(con->sock);
if (con->ip)
free(con->ip);
if (con->host)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment