Commit 8d48664b authored by Youness Alaoui's avatar Youness Alaoui

Using the same variable for two separate lists in nested loops, is, afaik, a bad idea...

parent 72f7f85d
......@@ -443,8 +443,8 @@ static gboolean priv_conn_keepalive_tick (gpointer pointer)
for (i = agent->streams; i; i = i->next) {
Stream *stream = i->data;
if (stream->conncheck_state == NICE_CHECKLIST_RUNNING) {
for (i = stream->conncheck_list; i ; i = i->next) {
CandidateCheckPair *p = i->data;
for (j = stream->conncheck_list; j ; j = j->next) {
CandidateCheckPair *p = j->data;
if (p->traffic_after_tick != TRUE) {
g_debug ("Agent %p : resending STUN-CC to keep the candidate alive (pair %p).", agent, p);
......
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