[Pkg-telepathy-commits] [libnice] 208/265: Fix TCP TURN for Google compatibility. Message length was sent uninitialized

Simon McVittie smcv at debian.org
Wed May 14 12:05:09 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 093b50e769557bf5306e112b24fbc7d08f36286b
Author: Youness Alaoui <youness.alaoui at collabora.co.uk>
Date:   Fri Apr 4 02:43:20 2014 -0400

    Fix TCP TURN for Google compatibility. Message length was sent uninitialized
---
 socket/tcp-turn.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/socket/tcp-turn.c b/socket/tcp-turn.c
index aae2ef0..c83372f 100644
--- a/socket/tcp-turn.c
+++ b/socket/tcp-turn.c
@@ -253,6 +253,7 @@ socket_send_message (NiceSocket *sock, const NiceAddress *to,
   local_message.n_buffers = n_bufs + 1;
 
   if (priv->compatibility == NICE_TURN_SOCKET_COMPATIBILITY_GOOGLE) {
+    header_buf = htons (output_message_get_size (message));
     local_bufs[0].buffer = &header_buf;
     local_bufs[0].size = sizeof (header_buf);
     offset = 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