Ignore appended resource when comparing JIDs.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@120675 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Philippe Sultan
2008-06-05 16:56:15 +00:00
parent dae683eb3f
commit d9ad9cc1e4

View File

@@ -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;
}
});