Merged revisions 120675 via svnmerge from
authorPhilippe Sultan <philippe.sultan@gmail.com>
Thu, 5 Jun 2008 17:02:39 +0000 (17:02 +0000)
committerPhilippe Sultan <philippe.sultan@gmail.com>
Thu, 5 Jun 2008 17:02:39 +0000 (17:02 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r120675 | phsultan | 2008-06-05 18:56:15 +0200 (Thu, 05 Jun 2008) | 2 lines

Ignore appended resource when comparing JIDs.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@120676 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_jabber.c

index 20189c7..eda3b42 100644 (file)
@@ -2902,7 +2902,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;
                        }                               
                });