search for: webroot_dir

Displaying 2 results from an estimated 2 matches for "webroot_dir".

2004 Aug 06
1
[PATCH] IceCast2 - aliasing (reimplementation of the patch I posted earlier)
...@@ static void _parse_paths(xmlDocPtr doc, xmlNodePtr node, ice_config_t *configuration) { + char *temp; + aliases *alias, *current, *last; + do { if (node == NULL) break; if (xmlIsBlankNode(node)) continue; @@ -621,7 +638,39 @@ configuration->webroot_dir = (char *)xmlNodeListGetString(doc, node->xmlChildrenNode, 1); if(configuration->webroot_dir[strlen(configuration->webroot_dir)-1] == '/') configuration->webroot_dir[strlen(configuration->webroot_dir)-1] = 0; - + } else if (strcmp(node-&gt...
2011 Apr 29
4
You don't check for malloc failure
...} memset (listenurl, '\000', listen_url_size); snprintf (listenurl, listen_url_size, "http://%s:%d%s", config->hostname, config->port, source->mount); @@ -1312,8 +1315,12 @@ config = config_get_config(); len = strlen (config->webroot_dir) + strlen (mount) + 1; path = malloc (len); - if (path) + if (path) { snprintf (path, len, "%s%s", config->webroot_dir, mount); + } else { + abort(); + } + config_release_config (); if (path == NULL) diff -ru icecast-2....