mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2025-02-02 15:07:36 -05:00
Fix: only export name="" on <role> if set
This commit is contained in:
parent
4c429ab01b
commit
fb088de568
@ -878,7 +878,8 @@ static xmlNodePtr _dump_stats_to_doc (xmlNodePtr root, const char *show_mount, i
|
||||
snprintf(idbuf, sizeof(idbuf), "%lu", auth->id);
|
||||
role = xmlNewTextChild(authentication, NULL, XMLSTR("role"), NULL);
|
||||
xmlSetProp(role, XMLSTR("id"), XMLSTR(idbuf));
|
||||
xmlSetProp(role, XMLSTR("name"), XMLSTR(auth->role));
|
||||
if (auth->role)
|
||||
xmlSetProp(role, XMLSTR("name"), XMLSTR(auth->role));
|
||||
auth_release(auth);
|
||||
auth_stack_next(&stack);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user