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

conncheck: Remove useless checks from priv_store_pending_check

parent 793c301b
......@@ -1864,10 +1864,7 @@ static int priv_store_pending_check (NiceAgent *agent, Component *component,
}
icheck = g_slice_new0 (IncomingCheck);
if (icheck) {
GSList *pending = g_slist_append (component->incoming_checks, icheck);
if (pending) {
component->incoming_checks = pending;
component->incoming_checks = g_slist_append (component->incoming_checks, icheck);
icheck->from = *from;
icheck->local_socket = socket;
icheck->priority = priority;
......@@ -1876,11 +1873,8 @@ static int priv_store_pending_check (NiceAgent *agent, Component *component,
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