Commit dd0e5574 authored by Olivier Crête's avatar Olivier Crête

turn: Don't try to process empty messages

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