Commit 3a4e2b23 authored by Fabrice Bellet's avatar Fabrice Bellet Committed by Olivier Crête

tcp-bsd: fix a heap-use-after-free

parent 13378275
......@@ -436,7 +436,7 @@ socket_send_more (
gpointer data)
{
NiceSocket *sock = (NiceSocket *) data;
TcpPriv *priv = sock->priv;
TcpPriv *priv;
g_mutex_lock (&mutex);
......@@ -447,6 +447,8 @@ socket_send_more (
return FALSE;
}
priv = sock->priv;
/* connection hangs up or queue was emptied */
if (condition & G_IO_HUP ||
nice_socket_flush_send_queue_to_socket (sock->fileno,
......
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