[svn-commits] tilghman: branch 1.4 r78139 - /branches/1.4/channels/chan_sip.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Sat Aug 4 22:29:02 CDT 2007
Author: tilghman
Date: Sat Aug 4 22:29:01 2007
New Revision: 78139
URL: http://svn.digium.com/view/asterisk?view=rev&rev=78139
Log:
If peer is not found, the error message is misleading (should be peer not found, not ACL failure)
Modified:
branches/1.4/channels/chan_sip.c
Modified: branches/1.4/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_sip.c?view=diff&rev=78139&r1=78138&r2=78139
==============================================================================
--- branches/1.4/channels/chan_sip.c (original)
+++ branches/1.4/channels/chan_sip.c Sat Aug 4 22:29:01 2007
@@ -8431,10 +8431,12 @@
peer = find_peer(name, NULL, 1);
if (!(peer && ast_apply_ha(peer->ha, sin))) {
/* Peer fails ACL check */
- if (peer)
+ if (peer) {
ASTOBJ_UNREF(peer, sip_destroy_peer);
- peer = NULL;
- res = AUTH_ACL_FAILED;
+ peer = NULL;
+ res = AUTH_ACL_FAILED;
+ } else
+ res = AUTH_NOT_FOUND;
}
if (peer) {
/* Set Frame packetization */
More information about the svn-commits
mailing list