]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
res_pjsip.c: Fix inconsistency between warning and action. 27/4927/1
authorRichard Mudgett <rmudgett@digium.com>
Sat, 11 Feb 2017 17:25:30 +0000 (11:25 -0600)
committerRichard Mudgett <rmudgett@digium.com>
Sun, 12 Feb 2017 21:32:47 +0000 (15:32 -0600)
The original return value corresponded to AST_SIP_AUTHENTICATION_CHALLENGE
but we have no authenticator registered to create the challenge.

Change-Id: I62368180d774b497411b80fbaabd0c80841f8512

res/res_pjsip.c

index 1bc8fb8d829fe220a7a20076cbe5755c14ffd3cf..9b9905826a61454157c46db332f02d5297f3b5b4 100644 (file)
@@ -2356,7 +2356,7 @@ enum ast_sip_check_auth_result ast_sip_check_authentication(struct ast_sip_endpo
 {
        if (!registered_authenticator) {
                ast_log(LOG_WARNING, "No SIP authenticator registered. Assuming authentication is successful\n");
-               return 0;
+               return AST_SIP_AUTHENTICATION_SUCCESS;
        }
        return registered_authenticator->check_authentication(endpoint, rdata, tdata);
 }