Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
Icecast-Server
Commits
d503f0bf
Commit
d503f0bf
authored
Oct 01, 2008
by
Karl Heyes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
guard for 2 NULL pointer cases raised by coverity. Neither should occur in practice
svn path=/icecast/trunk/icecast/; revision=15358
parent
7b9b682a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
src/auth.c
src/auth.c
+6
-2
src/auth_htpasswd.c
src/auth_htpasswd.c
+2
-0
No files found.
src/auth.c
View file @
d503f0bf
...
...
@@ -93,8 +93,7 @@ static void queue_auth_client (auth_client *auth_user, mount_proxy *mountinfo)
{
auth_t
*
auth
;
if
(
auth_user
==
NULL
||
(
mountinfo
==
NULL
&&
auth_user
->
client
&&
auth_user
->
client
->
auth
==
NULL
))
if
(
auth_user
==
NULL
)
return
;
auth_user
->
next
=
NULL
;
if
(
mountinfo
)
...
...
@@ -107,6 +106,11 @@ static void queue_auth_client (auth_client *auth_user, mount_proxy *mountinfo)
}
else
{
if
(
auth_user
->
client
==
NULL
||
auth_user
->
client
->
auth
==
NULL
)
{
WARN1
(
"internal state is incorrect for %p"
,
auth_user
->
client
);
return
;
}
auth
=
auth_user
->
client
->
auth
;
thread_mutex_lock
(
&
auth
->
lock
);
}
...
...
src/auth_htpasswd.c
View file @
d503f0bf
...
...
@@ -111,6 +111,8 @@ static void htpasswd_recheckfile (htpasswd_auth_state *htpasswd)
char
*
sep
;
char
line
[
MAX_LINE_LEN
];
if
(
htpasswd
->
filename
==
NULL
)
return
;
if
(
stat
(
htpasswd
->
filename
,
&
file_stat
)
<
0
)
{
WARN1
(
"failed to check status of %s"
,
htpasswd
->
filename
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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