Commit b025bb61 authored by Youness Alaoui's avatar Youness Alaoui

handle the permission response instead of having the code handled in the error case

parent c4ad6fbc
...@@ -968,6 +968,7 @@ nice_turn_socket_parse_recv (NiceSocket *sock, NiceSocket **from_sock, ...@@ -968,6 +968,7 @@ nice_turn_socket_parse_recv (NiceSocket *sock, NiceSocket **from_sock,
priv_send_create_permission (priv, &msg, &to); priv_send_create_permission (priv, &msg, &to);
return 0; return 0;
} }
}
/* If we get an error, we just assume the server somehow /* If we get an error, we just assume the server somehow
doesn't support permissions and we ignore the error and doesn't support permissions and we ignore the error and
fake a successful completion. If the server needs a permission fake a successful completion. If the server needs a permission
...@@ -986,7 +987,7 @@ nice_turn_socket_parse_recv (NiceSocket *sock, NiceSocket **from_sock, ...@@ -986,7 +987,7 @@ nice_turn_socket_parse_recv (NiceSocket *sock, NiceSocket **from_sock,
/* send enqued data */ /* send enqued data */
socket_dequeue_all_data (priv, &to); socket_dequeue_all_data (priv, &to);
}
g_free (priv->current_create_permission_msg); g_free (priv->current_create_permission_msg);
priv->current_create_permission_msg = NULL; priv->current_create_permission_msg = NULL;
} }
......
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