[Asterisk-cvs] asterisk/channels chan_iax2.c,1.187,1.188
markster at lists.digium.com
markster at lists.digium.com
Sun Sep 19 13:17:34 CDT 2004
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv589/channels
Modified Files:
chan_iax2.c
Log Message:
Don't register auth against something that isn't a register (bug #2468)
Index: chan_iax2.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_iax2.c,v
retrieving revision 1.187
retrieving revision 1.188
diff -u -d -r1.187 -r1.188
--- chan_iax2.c 17 Sep 2004 13:58:38 -0000 1.187
+++ chan_iax2.c 19 Sep 2004 17:21:26 -0000 1.188
@@ -4526,6 +4526,7 @@
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;
@@ -4549,7 +4550,9 @@
return send_command(iaxs[callno], AST_FRAME_IAX, IAX_COMMAND_REGREQ, 0, ied.buf, ied.pos, -1);
} else
return -1;
- ast_log(LOG_WARNING, "Registry acknowledge on unknown registery '%s'\n", peer);
+ 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;
}
More information about the svn-commits
mailing list