]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix chan_sip not working issue. Let's not prematurely return 0. (issue #8783 reported...
authorJoshua Colp <jcolp@digium.com>
Wed, 10 Jan 2007 18:32:29 +0000 (18:32 +0000)
committerJoshua Colp <jcolp@digium.com>
Wed, 10 Jan 2007 18:32:29 +0000 (18:32 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@50377 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index b9de083f13f8fa31f88d2891daeb77e7d6f587e5..93779640686f14735e726356a26ebcae1b4a090e 100644 (file)
@@ -13239,9 +13239,10 @@ static int handle_request_invite(struct sip_pvt *p, struct sip_request *req, int
                /* This is a new invite */
                /* Handle authentication if this is our first invite */
                res = check_user(p, req, SIP_INVITE, e, XMIT_RELIABLE, sin);
-               if (res == AUTH_CHALLENGE_SENT)
+               if (res == AUTH_CHALLENGE_SENT) {
                        p->invitestate = INV_COMPLETED;         /* Needs to restart in another INVITE transaction */
-                       return 0; 
+                       return 0;
+               }
                if (res < 0) { /* Something failed in authentication */
                        if (res == AUTH_FAKE_AUTH) {
                                ast_log(LOG_NOTICE, "Sending fake auth rejection for user %s\n", get_header(req, "From"));