From 90b705986cb3f342835a705abc5e6029732471e1 Mon Sep 17 00:00:00 2001 From: Karl Heyes Date: Sun, 11 May 2008 23:20:50 +0000 Subject: [PATCH] sanity check for unspecifed url svn path=/icecast/trunk/icecast/; revision=14866 --- src/cfgfile.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cfgfile.c b/src/cfgfile.c index 0c25ed3c..5eac93d0 100644 --- a/src/cfgfile.c +++ b/src/cfgfile.c @@ -918,6 +918,8 @@ static void _parse_directory(xmlDocPtr doc, xmlNodePtr node, if (tmp) xmlFree(tmp); } } while ((node = node->next)); + if (configuration->yp_url [configuration->num_yp_directories] == NULL) + return; configuration->num_yp_directories++; }