mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-09-29 04:25:55 -04:00
Fix: Clear the contenttype on source clear as the pointer might no longer be valid
This commit is contained in:
parent
1ead3bea27
commit
e736bc3933
@ -222,6 +222,9 @@ void source_clear_source (source_t *source)
|
||||
source->parser = NULL;
|
||||
source->con = NULL;
|
||||
|
||||
if (source->format)
|
||||
source->format->contenttype = NULL;
|
||||
|
||||
/* log bytes read in access log */
|
||||
if (source->client && source->format)
|
||||
source->client->con->sent_bytes = source->format->read_bytes;
|
||||
|
Loading…
Reference in New Issue
Block a user