Commit 39ff48d4 authored by Olivier Crête's avatar Olivier Crête

udp-turn: Don't dereference priv before check that it's valid

parent a7afd001
......@@ -689,7 +689,7 @@ socket_send_message (NiceSocket *sock, const NiceAddress *to,
struct sockaddr_storage storage;
struct sockaddr addr;
} sa;
GList *i = priv->channels;
GList *i;
ChannelBinding *binding = NULL;
gint ret;
......@@ -697,7 +697,7 @@ socket_send_message (NiceSocket *sock, const NiceAddress *to,
if (sock->priv == NULL)
return -1;
for (; i; i = i->next) {
for (i = priv->channels; i; i = i->next) {
ChannelBinding *b = i->data;
if (nice_address_equal (&b->peer, to)) {
binding = b;
......
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