mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2025-02-02 15:07:36 -05:00
Fix: avoid segfault by generating <metadata> for relays
This commit is contained in:
parent
c5bd8ad281
commit
7e9e298e33
@ -860,8 +860,10 @@ static xmlNodePtr _dump_stats_to_doc (xmlNodePtr root, const char *show_mount, i
|
||||
metadata = xmlNewTextChild(xmlnode, NULL, XMLSTR("metadata"), NULL);
|
||||
avl_tree_rlock(global.source_tree);
|
||||
source_real = source_find_mount_raw(source->source);
|
||||
for (i = 0; i < source_real->format->vc.comments; i++)
|
||||
__add_metadata(metadata, source_real->format->vc.user_comments[i]);
|
||||
if (source_real->format) {
|
||||
for (i = 0; i < source_real->format->vc.comments; i++)
|
||||
__add_metadata(metadata, source_real->format->vc.user_comments[i]);
|
||||
}
|
||||
avl_tree_unlock(global.source_tree);
|
||||
}
|
||||
avlnode = avl_get_next (avlnode);
|
||||
|
Loading…
Reference in New Issue
Block a user