Merge "res_pjsip/pjsip_configuration: Disregard empty auth values"

This commit is contained in:
Joshua Colp
2015-08-24 13:59:32 -05:00
committed by Gerrit Code Review

View File

@@ -402,6 +402,10 @@ int ast_sip_auth_vector_init(struct ast_sip_auth_vector *auths, const char *valu
}
while ((val = strsep(&auth_names, ","))) {
if (ast_strlen_zero(val)) {
continue;
}
val = ast_strdup(val);
if (!val) {
goto failure;