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

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

parent 5e8b2478
...@@ -1604,7 +1604,8 @@ void connection_close(connection_t *con) ...@@ -1604,7 +1604,8 @@ void connection_close(connection_t *con)
if (!con) if (!con)
return; return;
sock_close(con->sock); if (con->sock != -1) /* TODO: do not use magic */
if (con->ip) if (con->ip)
free(con->ip); free(con->ip);
if (con->host) 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