Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Icecast-Server
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
102
Issues
102
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
External Wiki
External Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xiph.Org
Icecast-Server
Commits
73401b80
Commit
73401b80
authored
Dec 15, 2007
by
Karl Heyes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
prevent NULL dereference
svn path=/icecast/trunk/icecast/; revision=14307
parent
02cc6c5f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
src/auth.c
src/auth.c
+6
-5
No files found.
src/auth.c
View file @
73401b80
...
...
@@ -418,13 +418,14 @@ static int add_authenticated_listener (const char *mount, mount_proxy *mountinfo
if
(
source
)
{
if
(
check_duplicate_logins
(
source
,
client
,
mountinfo
->
auth
)
==
0
)
{
avl_tree_unlock
(
global
.
source_tree
);
return
-
1
;
}
if
(
mountinfo
)
{
if
(
check_duplicate_logins
(
source
,
client
,
mountinfo
->
auth
)
==
0
)
{
avl_tree_unlock
(
global
.
source_tree
);
return
-
1
;
}
/* set a per-mount disconnect time if auth hasn't set one already */
if
(
mountinfo
->
max_listener_duration
&&
client
->
con
->
discon_time
==
0
)
client
->
con
->
discon_time
=
time
(
NULL
)
+
mountinfo
->
max_listener_duration
;
...
...
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