Skip to content
Snippets Groups Projects
Commit 844df94f authored by Richard Mudgett's avatar Richard Mudgett
Browse files

res_pjsip: Fix assertion for pjsip.conf authorization list options.

(closes issue ASTERISK-23168)
Reported by: George Joseph

Review: https://reviewboard.asterisk.org/r/3143/
........

Merged revisions 407324 from http://svn.asterisk.org/svn/asterisk/branches/12


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@407325 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 12668b66
Branches
Tags
No related merge requests found
......@@ -231,9 +231,13 @@ int ast_sip_auth_vector_init(struct ast_sip_auth_vector *auths, const char *valu
char *val;
ast_assert(auths != NULL);
ast_assert(AST_VECTOR_SIZE(auths) == 0);
AST_VECTOR_INIT(auths, 1);
if (AST_VECTOR_SIZE(auths)) {
ast_sip_auth_vector_destroy(auths);
}
if (AST_VECTOR_INIT(auths, 1)) {
return -1;
}
while ((val = strsep(&auth_names, ","))) {
val = ast_strdup(val);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment