1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-09-22 04:15:54 -04:00

Increase buffer size for IPs so that logging works better for v6 clients.

svn path=/trunk/icecast/; revision=4341
This commit is contained in:
Michael Smith 2003-02-12 22:50:59 +00:00
parent 08ad72ffed
commit 38e3bfb88f

View File

@ -125,10 +125,10 @@ static connection_t *_accept_connection(void)
return NULL;
}
/* malloc enough room for 123.123.123.123\0 (TODO: ipv6?)*/
ip = (char *)malloc(16);
/* malloc enough room for a full IP address (including ipv6) */
ip = (char *)malloc(40);
sock = sock_accept(global.serversock, ip, 16);
sock = sock_accept(global.serversock, ip, 40);
if (sock >= 0) {
con = create_connection(sock, ip);