Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
Icecast-Server
Commits
38e3bfb8
Commit
38e3bfb8
authored
Feb 12, 2003
by
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/connection.c
View file @
38e3bfb8
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment