Ignore appended resource when comparing JIDs.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@120675 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.4
Philippe Sultan 18 years ago
parent dae683eb3f
commit d9ad9cc1e4

@ -2377,7 +2377,7 @@ struct aji_client *ast_aji_get_client(const char *name)
/* strip resource for comparison */ /* strip resource for comparison */
aux = strsep(&aux, "/"); aux = strsep(&aux, "/");
} }
if (!strcasecmp(aux, name)) { if (!strncasecmp(aux, name, strlen(aux))) {
client = iterator; client = iterator;
} }
}); });

Loading…
Cancel
Save