Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Marvin Scholz
Icecast-Server
Commits
0f311a31
Commit
0f311a31
authored
Dec 28, 2014
by
Philipp Schafft
🦁
Browse files
Fix: Do not segfault if <role type="..."> is unknown
parent
a546d3cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/auth.c
View file @
0f311a31
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment