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:
parent
5e8b24785e
commit
c1034058f6
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user