1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-06-16 06:15:24 +00:00

Fix: Corrected XML rendering in case no default mount is defined

This commit is contained in:
Philipp Schafft 2021-10-25 23:35:44 +00:00
parent c99270de94
commit 678fce2693

View File

@ -940,7 +940,8 @@ static xmlNodePtr _dump_stats_to_doc (xmlNodePtr root, unsigned int flags, const
if (!(flags & STATS_XML_FLAG_PUBLIC_VIEW)) {
config = config_get_config();
mountproxy = config_find_mount(config, source->source, MOUNT_TYPE_NORMAL);
__add_authstack(mountproxy->authstack, xmlnode);
if (mountproxy)
__add_authstack(mountproxy->authstack, xmlnode);
config_release_config();
}
}