1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-09-22 04:15:54 -04:00

Fix: Handle ogg_sync_buffer() returning NULL correctly

Closes: #2450
This commit is contained in:
Philipp Schafft 2022-09-05 23:56:56 +00:00
parent b4565da411
commit f7183f973c

View File

@ -450,6 +450,8 @@ static refbuf_t *ogg_get_buffer(source_t *source)
}
/* we need more data to continue getting pages */
data = ogg_sync_buffer (&ogg_info->oy, 4096);
if (!data)
return NULL;
bytes = client_body_read(source->client, data, 4096);
if (bytes <= 0)