summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--socket/turn.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/socket/turn.c b/socket/turn.c
index fc24765..e95fbfe 100644
--- a/socket/turn.c
+++ b/socket/turn.c
@@ -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 ||