conncheck: fix the replay of early incoming connchecks
authorOlivier Crête <olivier.crete@collabora.com>
Fri, 27 May 2016 22:50:59 +0000 (18:50 -0400)
committerOlivier Crête <olivier.crete@collabora.com>
Fri, 27 May 2016 22:51:05 +0000 (18:51 -0400)
commit71e271095032bd50ac2be2b5d60f4beb15801fa0
tree479e7c7f15d3b43f0c8ea987ed88b2c71545c804
parentacdc0b8bb3cd2d48afe82c8dd8396a3c245191d9
conncheck: fix the replay of early incoming connchecks

This patch fixes a bug in the way the list of incoming checks
is handled. The code purges this list too early, before all ichecks
for a given component are processed. It happens because the component
is computed from each pair of the check list, instead of being passed
as a fixed parameter of the function.

Differential Revision: https://phabricator.freedesktop.org/D882
agent/agent.c
agent/conncheck.c
agent/conncheck.h