Commit b1fa963d authored by Olivier Crête's avatar Olivier Crête 👻

tcp-turn: Don't access output message after freeing it

parent 075d9065
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment