[PATCH] Segfault in src/admin.c
My Icecast 2.3.0.rc2 was segfaulting, when listmounts.xsl was requested, and there were mounts with fallback configured, so I have done little debugging. The "source->client" object must exist before we can check "source->client->con", see patch. Please take a look at my http-auth-logging patch, too (Ticket #706). Thanks.
--- admin.c.orig Sun Sep 11 22:57:35 2005
+++ admin.c Sun Sep 11 23:18:09 2005
@@ -252,7 +252,7 @@
if (source->running)
{
- if (source->client->con)
+ if (source->client && source->client->con)
{
snprintf (buf, sizeof(buf), "%lu",
(unsigned long)(now - source->con->con_time));