mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 20:04:50 +00:00
Fix a bug in iax2 registration that allowed peers to register with
case-insensitive names (user_cmp_cb and peer_cmp_cb are now both case-sensitive). (closes issue #13091) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@131491 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1119,7 +1119,7 @@ static int peer_cmp_cb(void *obj, void *arg, int flags)
|
||||
{
|
||||
struct iax2_peer *peer = obj, *peer2 = arg;
|
||||
|
||||
return !strcasecmp(peer->name, peer2->name) ? CMP_MATCH : 0;
|
||||
return !strcmp(peer->name, peer2->name) ? CMP_MATCH : 0;
|
||||
}
|
||||
|
||||
/*!
|
||||
@@ -1139,7 +1139,7 @@ static int user_cmp_cb(void *obj, void *arg, int flags)
|
||||
{
|
||||
struct iax2_user *user = obj, *user2 = arg;
|
||||
|
||||
return !strcasecmp(user->name, user2->name) ? CMP_MATCH : 0;
|
||||
return !strcmp(user->name, user2->name) ? CMP_MATCH : 0;
|
||||
}
|
||||
|
||||
/*!
|
||||
|
Reference in New Issue
Block a user