Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
Icecast-Server
Commits
6f1f4072
Commit
6f1f4072
authored
Jan 23, 2003
by
Michael Smith
Browse files
Fix segfault if current source didn't exist on fallback mount request.
svn path=/trunk/icecast/; revision=4292
parent
ac6bd1d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/connection.c
View file @
6f1f4072
...
...
@@ -443,6 +443,11 @@ static void handle_fallback_request(client_t *client)
source
=
source_find_mount
(
mount
);
avl_tree_unlock
(
global
.
source_tree
);
if
(
source
==
NULL
)
{
client_send_400
(
client
,
"Current source not found"
);
return
;
}
old
=
source
->
fallback_mount
;
source
->
fallback_mount
=
strdup
(
value
);
free
(
old
);
...
...
Write
Preview
Supports
Markdown
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