Commit 2d0d496a authored by Philipp Schafft's avatar Philipp Schafft 🦁

Fix: Set con->readbuffer = NULL after free()

parent 4f25a5d0
Pipeline #276 failed with stage
in 13 seconds
......@@ -312,6 +312,7 @@ ssize_t connection_read_bytes(connection_t *con, void *buf, size_t len)
if (len >= con->readbufferlen) {
memcpy(buf, con->readbuffer, con->readbufferlen);
free(con->readbuffer);
con->readbuffer = NULL;
ICECAST_LOG_DEBUG("New fill in buffer=<empty>");
if (len == con->readbufferlen) {
con->readbufferlen = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment