libpurple/protocols/jabber/jingle/iceudp.c

branch
string-comparison-r2
changeset 38258
9a6551eba09c
parent 32053
e11a51dcd2d8
child 38259
c593fc9f5438
--- a/libpurple/protocols/jabber/jingle/iceudp.c	Thu Mar 23 19:37:57 2017 +0300
+++ b/libpurple/protocols/jabber/jingle/iceudp.c	Thu Mar 23 21:01:15 2017 +0300
@@ -253,7 +253,7 @@
 
 	for (; iter; iter = g_list_next(iter)) {
 		JingleIceUdpCandidate *c = iter->data;
-		if (!strcmp(c->id, candidate->id)) {
+		if (purple_strequal(c->id, candidate->id)) {
 			guint generation = c->generation + 1;
 
 			g_boxed_free(JINGLE_TYPE_ICEUDP_CANDIDATE, c);
@@ -285,7 +285,7 @@
 	GList *iter = iceudp->priv->remote_candidates;
 	for (; iter; iter = g_list_next(iter)) {
 		JingleIceUdpCandidate *candidate = iter->data;
-		if (!strcmp(candidate->id, id)) {
+		if (purple_strequal(candidate->id, id)) {
 			return candidate;
 		}
 	}

mercurial