Commit 6e1c534b authored by Olivier Crête's avatar Olivier Crête

turn: Don't try to process empty messages

parent a5315715
......@@ -339,6 +339,9 @@ socket_recv_messages (NiceSocket *sock,
n_valid_messages = 1;
if (message->length == 0)
continue;
/* Compact the message’s buffers into a single one for parsing. Avoid this
* in the (hopefully) common case of a single-element buffer vector. */
if (message->n_buffers == 1 ||
......
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