Commit 267c2b90 authored by Olivier Crête's avatar Olivier Crête

conncheck: Remove useless checks from priv_store_pending_check

parent 793c301b
...@@ -1864,23 +1864,17 @@ static int priv_store_pending_check (NiceAgent *agent, Component *component, ...@@ -1864,23 +1864,17 @@ static int priv_store_pending_check (NiceAgent *agent, Component *component,
} }
icheck = g_slice_new0 (IncomingCheck); icheck = g_slice_new0 (IncomingCheck);
if (icheck) { component->incoming_checks = g_slist_append (component->incoming_checks, icheck);
GSList *pending = g_slist_append (component->incoming_checks, icheck); icheck->from = *from;
if (pending) { icheck->local_socket = socket;
component->incoming_checks = pending; icheck->priority = priority;
icheck->from = *from; icheck->use_candidate = use_candidate;
icheck->local_socket = socket; icheck->username_len = username_len;
icheck->priority = priority; icheck->username = NULL;
icheck->use_candidate = use_candidate; if (username_len > 0)
icheck->username_len = username_len; icheck->username = g_memdup (username, username_len);
icheck->username = NULL;
if (username_len > 0)
icheck->username = g_memdup (username, username_len);
return 0;
}
}
return -1; return 0;
} }
/* /*
......
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