Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Icecast-Server
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
93
Issues
93
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
External Wiki
External Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xiph.Org
Icecast-Server
Commits
b795bb58
Commit
b795bb58
authored
Dec 01, 2003
by
Karl Heyes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup bad pointer access after config re-read
svn path=/trunk/icecast/; revision=5673
parent
85efc9a7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
src/connection.c
src/connection.c
+2
-1
src/source.c
src/source.c
+3
-2
No files found.
src/connection.c
View file @
b795bb58
...
...
@@ -442,7 +442,6 @@ int connection_create_source(client_t *client, connection_t *con, http_parser_t
config
=
config_get_config
();
mountproxy
=
config
->
mounts
;
thread_mutex_lock
(
&
(
config_locks
()
->
mounts_lock
));
config_release_config
();
while
(
mountproxy
)
{
if
(
!
strcmp
(
mountproxy
->
mountname
,
mount
))
{
...
...
@@ -459,6 +458,7 @@ int connection_create_source(client_t *client, connection_t *con, http_parser_t
if
(
format
==
FORMAT_ERROR
)
{
WARN1
(
"Content-type
\"
%s
\"
not supported, dropping source"
,
contenttype
);
thread_mutex_unlock
(
&
(
config_locks
()
->
mounts_lock
));
config_release_config
();
goto
fail
;
}
else
{
source
=
source_create
(
client
,
con
,
parser
,
mount
,
...
...
@@ -471,6 +471,7 @@ int connection_create_source(client_t *client, connection_t *con, http_parser_t
source
=
source_create
(
client
,
con
,
parser
,
mount
,
format
,
mountinfo
);
thread_mutex_unlock
(
&
(
config_locks
()
->
mounts_lock
));
}
config_release_config
();
source
->
send_return
=
1
;
source
->
shutdown_rwlock
=
&
_source_shutdown_rwlock
;
...
...
src/source.c
View file @
b795bb58
...
...
@@ -72,9 +72,9 @@ source_t *source_create(client_t *client, connection_t *con,
src
->
yp_public
=
0
;
if
(
mountinfo
!=
NULL
)
{
src
->
fallback_mount
=
mountinfo
->
fallback_mount
;
src
->
fallback_mount
=
strdup
(
mountinfo
->
fallback_mount
)
;
src
->
max_listeners
=
mountinfo
->
max_listeners
;
src
->
dumpfilename
=
mountinfo
->
dumpfile
;
src
->
dumpfilename
=
strdup
(
mountinfo
->
dumpfile
)
;
}
if
(
src
->
dumpfilename
!=
NULL
)
{
...
...
@@ -140,6 +140,7 @@ int source_free_source(void *key)
free
(
source
->
mount
);
free
(
source
->
fallback_mount
);
free
(
source
->
dumpfilename
);
client_destroy
(
source
->
client
);
avl_tree_free
(
source
->
pending_tree
,
_free_client
);
avl_tree_free
(
source
->
client_tree
,
_free_client
);
...
...
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