From 07abb39d6a6f14c0fc518d5ed372167888a13000 Mon Sep 17 00:00:00 2001 From: Richard Mudgett Date: Sat, 11 Feb 2017 11:25:30 -0600 Subject: [PATCH] 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 --- res/res_pjsip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/res/res_pjsip.c b/res/res_pjsip.c index 59777c94ff..90eb37263c 100644 --- a/res/res_pjsip.c +++ b/res/res_pjsip.c @@ -2368,7 +2368,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); }