Commit 7e9e298e authored by Philipp Schafft's avatar Philipp Schafft 🦁
Browse files

Fix: avoid segfault by generating <metadata> for relays

parent c5bd8ad2
......@@ -860,8 +860,10 @@ static xmlNodePtr _dump_stats_to_doc (xmlNodePtr root, const char *show_mount, i
metadata = xmlNewTextChild(xmlnode, NULL, XMLSTR("metadata"), NULL);
source_real = source_find_mount_raw(source->source);
if (source_real->format) {
for (i = 0; i < source_real->format->vc.comments; i++)
__add_metadata(metadata, source_real->format->vc.user_comments[i]);
avlnode = avl_get_next (avlnode);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment