aboutsummaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorphsultan <phsultan@f38db490-d61c-443f-a65b-d21fe96a405b>2008-06-05 16:56:15 +0000
committerphsultan <phsultan@f38db490-d61c-443f-a65b-d21fe96a405b>2008-06-05 16:56:15 +0000
commit288d848b152ceba69cbe1a3d07cdf730a2b1062f (patch)
tree817ec58dfd31f9e671492f20b5938a35a3e012ed /res
parent55a7d769ac2d76dd6f42f54c2e3545129a3ee180 (diff)
Ignore appended resource when comparing JIDs.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@120675 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rw-r--r--res/res_jabber.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_jabber.c b/res/res_jabber.c
index 4decdf4d6..0c3bf6505 100644
--- a/res/res_jabber.c
+++ b/res/res_jabber.c
@@ -2377,7 +2377,7 @@ struct aji_client *ast_aji_get_client(const char *name)
/* strip resource for comparison */
aux = strsep(&aux, "/");
}
- if (!strcasecmp(aux, name)) {
+ if (!strncasecmp(aux, name, strlen(aux))) {
client = iterator;
}
});