From: Richard Mudgett Date: Sat, 11 Feb 2017 17:25:30 +0000 (-0600) Subject: res_pjsip.c: Fix inconsistency between warning and action. X-Git-Tag: 14.4.0-rc1~99^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02c43d559776874b048d8b75c3e99170f89661cc;p=thirdparty%2Fasterisk.git res_pjsip.c: Fix inconsistency between warning and action. The original return value corresponded to AST_SIP_AUTHENTICATION_CHALLENGE but we have no authenticator registered to create the challenge. Change-Id: I62368180d774b497411b80fbaabd0c80841f8512 --- diff --git a/res/res_pjsip.c b/res/res_pjsip.c index 9ddcefbb3c..42519f030e 100644 --- a/res/res_pjsip.c +++ b/res/res_pjsip.c @@ -2362,7 +2362,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); }