[asterisk-commits] gtjoseph: trunk r425053 - in /trunk: ./ res/res_pjsip_phoneprov_provider.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Oct 9 18:37:51 CDT 2014
Author: gtjoseph
Date: Thu Oct 9 18:37:49 2014
New Revision: 425053
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=425053
Log:
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
Modified:
trunk/ (props changed)
trunk/res/res_pjsip_phoneprov_provider.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-13-merged' - no diff available.
Modified: trunk/res/res_pjsip_phoneprov_provider.c
URL: http://svnview.digium.com/svn/asterisk/trunk/res/res_pjsip_phoneprov_provider.c?view=diff&rev=425053&r1=425052&r2=425053
==============================================================================
--- trunk/res/res_pjsip_phoneprov_provider.c (original)
+++ trunk/res/res_pjsip_phoneprov_provider.c Thu Oct 9 18:37:49 2014
@@ -258,10 +258,10 @@
}
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;
}
- 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);
if (!auth) {
More information about the asterisk-commits
mailing list