Don't register auth against something that isn't a register (bug #2468)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3810 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
efbfbe86bf
commit
5efd9079c0
|
@ -4526,6 +4526,7 @@ static int registry_rerequest(struct iax_ies *ies, int callno, struct sockaddr_i
|
|||
strncpy(challenge, ies->challenge, sizeof(challenge) - 1);
|
||||
memset(&ied, 0, sizeof(ied));
|
||||
reg = iaxs[callno]->reg;
|
||||
if (reg) {
|
||||
if (inaddrcmp(®->addr, sin)) {
|
||||
ast_log(LOG_WARNING, "Received unsolicited registry authenticate request from '%s'\n", ast_inet_ntoa(iabuf, sizeof(iabuf), sin->sin_addr));
|
||||
return -1;
|
||||
|
@ -4550,6 +4551,8 @@ static int registry_rerequest(struct iax_ies *ies, int callno, struct sockaddr_i
|
|||
} else
|
||||
return -1;
|
||||
ast_log(LOG_WARNING, "Registry acknowledge on unknown registery '%s'\n", peer);
|
||||
} else
|
||||
ast_log(LOG_NOTICE, "Can't reregister without a reg\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
Reference in New Issue