Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
Icecast-Server
Commits
38e3bfb8
Commit
38e3bfb8
authored
Feb 12, 2003
by
Michael Smith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/connection.c
src/connection.c
+3
-3
No files found.
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
Markdown
is supported
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