mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
res_pjsip_phoneprov_provider: fix compile breakage on AST_VECTOR
endpoint->inbound_auths was changed to a vector in 13 and I committed the 12 patch instead of the 13 patch. Tested-by: George Joseph ........ Merged revisions 425052 from http://svn.asterisk.org/svn/asterisk/branches/13 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@425053 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -258,10 +258,10 @@ static int load_endpoint(const char *id, const char *endpoint_name, struct varsh
|
|||||||
}
|
}
|
||||||
snprintf(port_string, 6, "%d", pj_sockaddr_get_port(&transport->host));
|
snprintf(port_string, 6, "%d", pj_sockaddr_get_port(&transport->host));
|
||||||
|
|
||||||
if (!endpoint->inbound_auths.num) {
|
if (!AST_VECTOR_SIZE(&endpoint->inbound_auths)) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
auth_name = endpoint->inbound_auths.names[0];
|
auth_name = AST_VECTOR_GET(&endpoint->inbound_auths, 0);
|
||||||
|
|
||||||
auth = ast_sorcery_retrieve_by_id(ast_sip_get_sorcery(), "auth", auth_name);
|
auth = ast_sorcery_retrieve_by_id(ast_sip_get_sorcery(), "auth", auth_name);
|
||||||
if (!auth) {
|
if (!auth) {
|
||||||
|
Reference in New Issue
Block a user