1
0
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:
Philipp Schafft 2022-09-16 18:43:59 +00:00
parent 1ead3bea27
commit e736bc3933

View File

@ -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;