[xiph-commits] r7679 - icecast/branches/kh/icecast/src

karl at motherfish-iii.xiph.org karl at motherfish-iii.xiph.org
Wed Sep 1 14:02:58 PDT 2004


Author: karl
Date: 2004-09-01 14:02:57 -0700 (Wed, 01 Sep 2004)
New Revision: 7679

Modified:
   icecast/branches/kh/icecast/src/yp.c
Log:
missing NULL check


Modified: icecast/branches/kh/icecast/src/yp.c
===================================================================
--- icecast/branches/kh/icecast/src/yp.c	2004-09-01 17:29:53 UTC (rev 7678)
+++ icecast/branches/kh/icecast/src/yp.c	2004-09-01 21:02:57 UTC (rev 7679)
@@ -878,12 +878,13 @@
 {
     struct yp_server *server = active_yps;
     time_t trigger;
-    ypdata_t *search_list;
+    ypdata_t *search_list = NULL;
 
     thread_rwlock_rlock (&yp_lock);
     /* do update in 3 secs, give stats chance to update */
     trigger = time(NULL) + 3;
-    search_list = server->mounts;
+    if (server)
+        search_list = server->mounts;
     while (server)
     {
         ypdata_t *yp = find_yp_mount (search_list, mount);



More information about the commits mailing list