[Pkg-telepathy-commits] [libnice] 193/265: tcp-turn: Don't access output message after freeing it
Simon McVittie
smcv at debian.org
Wed May 14 12:05:07 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 b1fa963d0c20afd0a7719c60f77ff4101db244e0
Author: Olivier Crête <olivier.crete at collabora.com>
Date: Sat Mar 29 21:28:02 2014 -0400
tcp-turn: Don't access output message after freeing it
---
socket/tcp-turn.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/socket/tcp-turn.c b/socket/tcp-turn.c
index 3021009..4ca684a 100644
--- a/socket/tcp-turn.c
+++ b/socket/tcp-turn.c
@@ -276,10 +276,11 @@ socket_send_message (NiceSocket *sock, const NiceAddress *to,
ret = nice_socket_send_messages (priv->base_socket, to, &local_message, 1);
+ if (ret == 1)
+ ret = output_message_get_size (&local_message);
+
g_free (local_bufs);
- if (ret == 1)
- return output_message_get_size (&local_message);
return ret;
}
--
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