summaryrefslogtreecommitdiff
path: root/res/res_pjsip/pjsip_distributor.c
diff options
context:
space:
mode:
authorMark Michelson <mmichelson@digium.com>2013-12-09 16:10:05 +0000
committerMark Michelson <mmichelson@digium.com>2013-12-09 16:10:05 +0000
commitb18ed67d16e60b0cfe25b5d3b5ff3b62a2b467dc (patch)
tree735c83ea3d113a37a2e7355c676e99b0d2668123 /res/res_pjsip/pjsip_distributor.c
parent8042f4cdd2b650613898f9e7ddff0a052b8627f3 (diff)
Switch PJSIP auth to use a vector.
Since Asterisk has a vector API now, places where arrays are manually resized don't really make sense any more. Since the auth work in PJSIP was freshly-written, it was easy to reform it to use a vector. Review: https://reviewboard.asterisk.org/r/3044 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@403499 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_pjsip/pjsip_distributor.c')
-rw-r--r--res/res_pjsip/pjsip_distributor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_pjsip/pjsip_distributor.c b/res/res_pjsip/pjsip_distributor.c
index 5e53cb0fd..e59305ec5 100644
--- a/res/res_pjsip/pjsip_distributor.c
+++ b/res/res_pjsip/pjsip_distributor.c
@@ -227,7 +227,7 @@ static int create_artificial_endpoint(void)
return -1;
}
- artificial_endpoint->inbound_auths.num = 1;
+ AST_VECTOR_INIT(&artificial_endpoint->inbound_auths, 1);
return 0;
}