[Pkg-telepathy-commits] [libnice] 257/265: Fix udp-turn returning wrong message length in socket_recv_messages.
Simon McVittie
smcv at debian.org
Wed May 14 12:05:14 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 c4b50bfb20916c89a204b61bf67e001be0c81df5
Author: Youness Alaoui <youness.alaoui at collabora.co.uk>
Date: Mon Apr 28 17:21:04 2014 -0400
Fix udp-turn returning wrong message length in socket_recv_messages.
When using optimal path where recv message has only one buffer, the
buffer length was set to the size of the buffer, not its length, which was
causing the wrong message length to be returned causing the agent to
discard STUN messages because their size doesn't match received data
length.
---
socket/turn.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/socket/turn.c b/socket/turn.c
index 1c82a04..e852837 100644
--- a/socket/turn.c
+++ b/socket/turn.c
@@ -354,7 +354,7 @@ socket_recv_messages (NiceSocket *sock,
message->buffers[0].buffer != NULL &&
message->buffers[1].buffer == NULL)) {
buffer = message->buffers[0].buffer;
- buffer_length = message->buffers[0].size;
+ buffer_length = message->length;
} else {
nice_debug ("%s: **WARNING: SLOW PATH**", G_STRFUNC);
--
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