Commit 38e3bfb8 authored by Michael Smith's avatar Michael Smith
Browse files

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

svn path=/trunk/icecast/; revision=4341
parent 08ad72ff
......@@ -125,10 +125,10 @@ static connection_t *_accept_connection(void)
return NULL;
/* malloc enough room for\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);
Supports Markdown
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