]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
(closes issue #10514)
authorJoshua Colp <jcolp@digium.com>
Thu, 30 Aug 2007 21:23:50 +0000 (21:23 +0000)
committerJoshua Colp <jcolp@digium.com>
Thu, 30 Aug 2007 21:23:50 +0000 (21:23 +0000)
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/branches/1.4@81395 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 6fe82e0dcaeb347c487c2390776f0ceeecfa1a3a..e882fb54ad739e9ad582b18fce0da9f92166bb9a 100644 (file)
@@ -8552,7 +8552,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);