1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2025-02-02 15:07:36 -05:00

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

This commit is contained in:
Philipp Schafft 2015-03-01 16:53:17 +00:00
parent 5e8b24785e
commit c1034058f6

View File

@ -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)