summaryrefslogtreecommitdiff
path: root/socket
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2016-02-19 20:47:08 -0500
committerOlivier CrĂȘte <olivier.crete@collabora.com>2016-05-26 16:03:54 -0400
commit0a6c779f1f24099db2c1cd34cd339e240682525d (patch)
treeba21b2f43e8e243cf419de4e43d8aa3d0d86b659 /socket
parent5b27b028d8ad89214dc7b1ecd018f56aa0333b9c (diff)
downloadlibnice-0a6c779f1f24099db2c1cd34cd339e240682525d.tar.gz
udp-turn: Don't expose GSocket
UDP turn sockets should never be read frm directly. Because they may share the same socket with the non-relay, so the incoming data may not be relayed and then the NiceSocket API doesn't allow returning the base socket as the source.
Diffstat (limited to 'socket')
-rw-r--r--socket/udp-turn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/socket/udp-turn.c b/socket/udp-turn.c
index f3ad04d..da43b19 100644
--- a/socket/udp-turn.c
+++ b/socket/udp-turn.c
@@ -241,7 +241,7 @@ nice_udp_turn_socket_new (GMainContext *ctx, NiceAddress *addr,
priv_send_data_queue_destroy);
sock->type = NICE_SOCKET_TYPE_UDP_TURN;
- sock->fileno = base_socket->fileno;
+ sock->fileno = NULL;
sock->addr = *addr;
sock->send_messages = socket_send_messages;
sock->send_messages_reliable = socket_send_messages_reliable;