aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/jabber/iq.c
diff options
context:
space:
mode:
authorGRMrGecko <GRMrGecko@gmail.com>2014-07-24 00:51:07 -0300
committerdequis <dx@dxzone.com.ar>2014-07-24 00:51:07 -0300
commit757515a793748591e8689167e153ea9ff26ff9e5 (patch)
tree2854d3b3092a4e8d2e8454d9bb319ba87cca3cb3 /protocols/jabber/iq.c
parent778ea8abdfd652afad44c3864f9bb02144ce39a0 (diff)
Added jabber_compare_jid to fix JID comparison case sensitivity
Diffstat (limited to 'protocols/jabber/iq.c')
-rw-r--r--protocols/jabber/iq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/jabber/iq.c b/protocols/jabber/iq.c
index 31b92049..61417bcc 100644
--- a/protocols/jabber/iq.c
+++ b/protocols/jabber/iq.c
@@ -351,7 +351,7 @@ xt_status jabber_pkt_bind_sess( struct im_connection *ic, struct xt_node *node,
{
/* Server is crap, but this is no disaster. */
}
- else if( strncmp( jd->me, c->text, strlen( jd->me ) ) != 0 )
+ else if( jabber_compare_jid( jd->me, c->text ) == 0 )
{
s = strchr( c->text, '/' );
if( s )