[Asterisk-code-review] res pjsip.c: Fix inconsistency between warning and action. (asterisk[14])

Richard Mudgett asteriskteam at digium.com
Sun Feb 12 15:34:38 CST 2017


Richard Mudgett has uploaded a new change for review. ( https://gerrit.asterisk.org/4928 )

Change subject: res_pjsip.c: Fix inconsistency between warning and action.
......................................................................

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
---
M res/res_pjsip.c
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/28/4928/1

diff --git a/res/res_pjsip.c b/res/res_pjsip.c
index 9ddcefb..42519f0 100644
--- a/res/res_pjsip.c
+++ b/res/res_pjsip.c
@@ -2362,7 +2362,7 @@
 {
 	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);
 }

-- 
To view, visit https://gerrit.asterisk.org/4928
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I62368180d774b497411b80fbaabd0c80841f8512
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 14
Gerrit-Owner: Richard Mudgett <rmudgett at digium.com>



More information about the asterisk-code-review mailing list