Commit 0f311a31 authored by Philipp Schafft's avatar Philipp Schafft 🦁

Fix: Do not segfault if <role type="..."> is unknown

parent a546d3cc
......@@ -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);
......
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