Displaying 4 results from an estimated 4 matches for "sock_accept".
2011 Apr 29
4
You don't check for malloc failure
...-2.3.2-ORIG/src/connection.c Wed Dec 19 19:58:00 2007
+++ icecast-2.3.2/src/connection.c Thu Apr 28 19:53:43 2011
@@ -532,6 +532,9 @@
/* malloc enough room for a full IP address (including ipv6) */
ip = (char *)malloc(MAX_ADDR_LEN);
+ if (ip == NULL) {
+ abort();
+ }
sock = sock_accept(serversock, ip, MAX_ADDR_LEN);
if (sock != SOCK_ERROR)
diff -ru icecast-2.3.2-ORIG/src/format_vorbis.c icecast-2.3.2/src/format_vorbis.c
--- icecast-2.3.2-ORIG/src/format_vorbis.c Thu Sep 13 00:40:55 2007
+++ icecast-2.3.2/src/format_vorbis.c Thu Apr 28 19:54:26 2011
@@ -401,6 +401,9 @@
p...
2004 Aug 06
1
[PATCH] IceCast2 - aliasing (reimplementation of the patch I posted earlier)
...n;
con = (connection_t *)malloc(sizeof(connection_t));
memset(con, 0, sizeof(connection_t));
con->sock = sock;
+ con->serversock = serversock;
con->con_time = time(NULL);
con->id = _next_connection_id();
con->ip = ip;
@@ -203,7 +204,7 @@
sock = sock_accept(serversock, ip, MAX_ADDR_LEN);
if (sock >= 0) {
- con = create_connection(sock, ip);
+ con = create_connection(sock, serversock, ip);
return con;
}
@@ -648,6 +649,10 @@
int fileserve;
char *host;
int port;
+ int i;
+ char *serverhost;
+...
2004 Aug 06
0
[PATCH] IceCast2 - socket-based default mount
...n;
con = (connection_t *)malloc(sizeof(connection_t));
memset(con, 0, sizeof(connection_t));
con->sock = sock;
+ con->serversock = serversock;
con->con_time = time(NULL);
con->id = _next_connection_id();
con->ip = ip;
@@ -203,7 +204,7 @@
sock = sock_accept(serversock, ip, MAX_ADDR_LEN);
if (sock >= 0) {
- con = create_connection(sock, ip);
+ con = create_connection(sock, serversock, ip);
return con;
}
@@ -648,6 +649,8 @@
int fileserve;
char *host;
int port;
+ int i;
+ char *default_mount;...
2010 Jul 30
33
[PATCHES] Smartjog PatchDump
Hello,
I work at SmarctJog.com, we have here some patches on IceCast for
performance and reliability, these are mostly client/connection/source
cleanups (a slave merge is underway, and some more good stuff (c)),
but we'd like this to be merged in before the list gets any longer.
Please find attached a list of our patches with a short desc:
This one is actually not from us/me, it was found