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, ...@@ -1864,10 +1864,7 @@ 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);
if (pending) {
component->incoming_checks = pending;
icheck->from = *from; icheck->from = *from;
icheck->local_socket = socket; icheck->local_socket = socket;
icheck->priority = priority; icheck->priority = priority;
...@@ -1876,11 +1873,8 @@ static int priv_store_pending_check (NiceAgent *agent, Component *component, ...@@ -1876,11 +1873,8 @@ static int priv_store_pending_check (NiceAgent *agent, Component *component,
icheck->username = NULL; icheck->username = NULL;
if (username_len > 0) if (username_len > 0)
icheck->username = g_memdup (username, username_len); 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