Merged revisions 81395 via svnmerge from
authorJoshua Colp <jcolp@digium.com>
Thu, 30 Aug 2007 21:25:52 +0000 (21:25 +0000)
committerJoshua Colp <jcolp@digium.com>
Thu, 30 Aug 2007 21:25:52 +0000 (21:25 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r81395 | file | 2007-08-30 18:23:50 -0300 (Thu, 30 Aug 2007) | 6 lines

(closes issue #10514)
Reported by: casper
Patches:
      chan_sip.c.80129.diff uploaded by casper (license 55)
Remove needless check for AUTH_UNKNOWN_DOMAIN. It was impossible for it to ever be that value.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@81396 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 105151a..753f283 100644 (file)
@@ -9359,7 +9359,7 @@ static enum check_auth_result register_verify(struct sip_pvt *p, struct sockaddr
                                transmit_fake_auth_response(p, &p->initreq, 1);
                        } else {
                                /* URI not found */
-                               if (res == AUTH_UNKNOWN_DOMAIN || res == AUTH_PEER_NOT_DYNAMIC)
+                               if (res == AUTH_PEER_NOT_DYNAMIC)
                                        transmit_response(p, "403 Forbidden", &p->initreq);
                                else
                                        transmit_response(p, "404 Not found", &p->initreq);