mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2025-02-02 15:07:36 -05:00
Fix: Do not segfault if <role type="..."> is unknown
This commit is contained in:
parent
a546d3cc8a
commit
0f311a318d
@ -552,7 +552,7 @@ auth_t *auth_get_authenticator(xmlNodePtr node)
|
||||
free (opt);
|
||||
}
|
||||
|
||||
if (!auth->management_url && (auth->adduser || auth->deleteuser || auth->listuser)) {
|
||||
if (auth && !auth->management_url && (auth->adduser || auth->deleteuser || auth->listuser)) {
|
||||
char url[128];
|
||||
snprintf(url, sizeof(url), "/admin/manageauth.xsl?id=%lu", auth->id);
|
||||
auth->management_url = (char*)xmlCharStrdup(url);
|
||||
|
Loading…
Reference in New Issue
Block a user