[Pkg-telepathy-commits] [libnice] 184/265: turn: Don't try to process empty messages
Simon McVittie
smcv at debian.org
Wed May 14 12:05:06 UTC 2014
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to branch debian
in repository libnice.
commit dd0e5574e0876e02c070fe4646391159c856c2f0
Author: Olivier Crête <olivier.crete at collabora.com>
Date: Thu Mar 27 17:55:31 2014 -0400
turn: Don't try to process empty messages
---
socket/turn.c | 3 +++
1 file changed, 3 insertions(+)
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 ||
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-telepathy/libnice.git
More information about the Pkg-telepathy-commits
mailing list