diff options
author | Olivier CrĂȘte <olivier.crete@collabora.com> | 2017-04-04 12:25:50 -0400 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.com> | 2017-04-04 12:26:30 -0400 |
commit | 0de1657e4d15d4f1911ab1fad84ea23e7013070f (patch) | |
tree | 39eea02ca30185237ea926f423ffc1b5066ad259 | |
parent | 59ce41dfb837adf4222b25490cde2e394384ad15 (diff) | |
download | libnice-0de1657e4d15d4f1911ab1fad84ea23e7013070f.tar.gz |
conncheck: Use the right test for empty remote_frag
It's now an array, not a pointer, so needs to test to emptyness.
It's a bugfix on the previous commit, 59ce41df
-rw-r--r-- | agent/conncheck.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/agent/conncheck.c b/agent/conncheck.c index 2abbc5e..7096b42 100644 --- a/agent/conncheck.c +++ b/agent/conncheck.c @@ -3638,7 +3638,7 @@ gboolean conn_check_handle_inbound_stun (NiceAgent *agent, NiceStream *stream, agent, stream, component, priority, from, nicesock, local_candidate, remote_candidate2 ? remote_candidate2 : remote_candidate); - if(remote_candidate && stream->remote_ufrag != NULL) { + if(remote_candidate && stream->remote_ufrag[0]) { if (local_candidate && local_candidate->transport == NICE_CANDIDATE_TRANSPORT_TCP_PASSIVE) { CandidateCheckPair *pair; @@ -3657,7 +3657,7 @@ gboolean conn_check_handle_inbound_stun (NiceAgent *agent, NiceStream *stream, priv_reply_to_conn_check (agent, stream, component, local_candidate, remote_candidate, from, nicesock, rbuf_len, &msg, use_candidate); - if (stream->remote_ufrag == NULL) { + if (stream->remote_ufrag[0] == 0) { /* case: We've got a valid binding request to a local candidate * but we do not yet know remote credentials. * As per sect 7.2 of ICE (ID-19), we send a reply |