diff options
author | Fabrice Bellet <fabrice@bellet.info> | 2016-04-19 20:46:34 +0200 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.com> | 2016-06-20 18:28:08 -0400 |
commit | ea946220cbcde19300a2f6647fdecf70fc6d3d82 (patch) | |
tree | 27eee2314d68c1e87867709273eed84a354ad3a3 | |
parent | 243610bc10bb3a31c0f3ba08fc6b46a4f897f7d9 (diff) | |
download | libnice-ea946220cbcde19300a2f6647fdecf70fc6d3d82.tar.gz |
conncheck: use strncmp instead of strcmp
Differential Revision: https://phabricator.freedesktop.org/D931
-rw-r--r-- | agent/conncheck.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/agent/conncheck.c b/agent/conncheck.c index c2f7477..8935aae 100644 --- a/agent/conncheck.c +++ b/agent/conncheck.c @@ -333,7 +333,8 @@ static void priv_conn_check_unfreeze_related (NiceAgent *agent, NiceStream *stre if (p->stream_id == ok_check->stream_id) { if (p->state == NICE_CHECK_FROZEN && - strcmp (p->foundation, ok_check->foundation) == 0) { + strncmp (p->foundation, ok_check->foundation, + NICE_CANDIDATE_PAIR_MAX_FOUNDATION) == 0) { nice_debug ("Agent %p : Unfreezing check %p (after successful check %p).", agent, p, ok_check); p->state = NICE_CHECK_WAITING; nice_debug ("Agent %p : pair %p state WAITING", agent, p); |