search for: xmlstrcmp

Displaying 5 results from an estimated 5 matches for "xmlstrcmp".

2016 Jun 06
0
[PATCH] Config: Rename mp3-metadata-interval to icy-metadata-interval
...if (!configuration->admin || strcmp(configuration->admin, CONFIG_DEFAULT_ADMIN) == 0) { ICECAST_LOG_WARN("Warning, <admin> contact not configured, using " @@ -1290,7 +1290,7 @@ static void _parse_mount(xmlDocPtr doc, continue; if (xmlStrcmp(node->name, XMLSTR("mount-name")) == 0) { - mount->mountname = (char *)xmlNodeListGetString(doc, + mount->mountname = (char *)xmlNodeListGetString(doc, node->xmlChildrenNode, 1); } else if (xmlStrcmp(node->name, XMLSTR("...
2015 Mar 22
2
exposed-port option for Icecast behind reverse proxy
...diff --git a/src/cfgfile.c b/src/cfgfile.c index 5eac93d..42d917f 100644 --- a/src/cfgfile.c +++ b/src/cfgfile.c @@ -436,6 +436,10 @@ static void _parse_root(xmlDocPtr doc, xmlNodePtr node, configuration->mimetypes_fn = (char *)xmlNodeListGetString(doc, node->xmlChildrenNode, 1); } else if (xmlStrcmp (node->name, XMLSTR("listen-socket")) == 0) { _parse_listen_socket(doc, node->xmlChildrenNode, configuration); + } else if (xmlStrcmp (node->name, XMLSTR("exposed-port")) == 0) { + tmp = (char *)xmlNodeListGetString(doc, node->xmlChildrenNode, 1); + configuration-&gt...
2010 Sep 06
2
Adding Configuration Options
So, I'm in the middle of understanding how the icecast.xml file is parsed, and how the settings for a specific mount point are read. In cfgfile.c - _parse_mount() I've added the following lines: } else if (xmlStrcmp (node->name, XMLSTR("playlist-notify-uri")) == 0) { mount->playlist_notify_uri = (char *)xmlNodeListGetString (doc, node->xmlChildrenNode, 1); } My goal is to include the URI in my logging.c file, and get the value of the field: <mount> <playlist-notify-uri&...
2010 Sep 06
0
Adding Configuration Options
On 06/09/10 16:42, Nicholas Young wrote: > So, I'm in the middle of understanding how the icecast.xml file is parsed, > and how the settings for a specific mount point are read. > > In cfgfile.c - _parse_mount() I've added the following lines: > > } else if (xmlStrcmp (node->name, XMLSTR("playlist-notify-uri")) == 0) { > mount->playlist_notify_uri = (char *)xmlNodeListGetString (doc, > node->xmlChildrenNode, 1); > } > > My goal is to include the URI in my logging.c file, and get the value of the > field: > > &l...
2011 Apr 29
4
You don't check for malloc failure
...G/src/cfgfile.c icecast-2.3.2/src/cfgfile.c --- icecast-2.3.2-ORIG/src/cfgfile.c Fri May 2 04:56:58 2008 +++ icecast-2.3.2/src/cfgfile.c Thu Apr 28 19:53:33 2011 @@ -964,6 +964,9 @@ configuration->adminroot_dir[strlen(configuration->adminroot_dir)-1] = 0; } else if (xmlStrcmp (node->name, XMLSTR("alias")) == 0) { alias = malloc(sizeof(aliases)); + if (alias == NULL) { + abort(); + } alias->next = NULL; alias->source = (char *)xmlGetProp(node, XMLSTR("source")); if(ali...