mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2025-02-02 15:07:36 -05: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:
parent
08ad72ffed
commit
38e3bfb88f
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user