mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-14 16:33:34 +00:00
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
This commit is contained in:
@@ -2356,7 +2356,7 @@ enum ast_sip_check_auth_result ast_sip_check_authentication(struct ast_sip_endpo
|
|||||||
{
|
{
|
||||||
if (!registered_authenticator) {
|
if (!registered_authenticator) {
|
||||||
ast_log(LOG_WARNING, "No SIP authenticator registered. Assuming authentication is successful\n");
|
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);
|
return registered_authenticator->check_authentication(endpoint, rdata, tdata);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user