Commit 27128730 authored by Youness Alaoui's avatar Youness Alaoui

check return value of agent_find_component

parent 338ec10b
......@@ -1154,7 +1154,8 @@ static void priv_update_check_list_failed_components (NiceAgent *agent, Stream *
/* note: iterate the conncheck list for each component separately */
for (c = 0; c < components; c++) {
Component *comp = NULL;
agent_find_component (agent, stream->id, c+1, NULL, &comp);
if (!agent_find_component (agent, stream->id, c+1, NULL, &comp))
continue;
for (i = stream->conncheck_list; i; i = i->next) {
CandidateCheckPair *p = i->data;
......
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