diff options
author | Olivier CrĂȘte <olivier.crete@collabora.com> | 2014-03-29 21:28:02 -0400 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.com> | 2014-03-30 02:12:41 -0400 |
commit | b1fa963d0c20afd0a7719c60f77ff4101db244e0 (patch) | |
tree | 74ced51e63e89aa81298f027b37dcee2e85af574 /socket | |
parent | 075d90655a1ea5118e5a8821249d2a5a9982ec9b (diff) |
tcp-turn: Don't access output message after freeing it
Diffstat (limited to 'socket')
-rw-r--r-- | socket/tcp-turn.c | 5 |
1 files 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; } |