mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-13 16:21:01 +00:00
Merge "res_pjsip/pjsip_configuration: Disregard empty auth values"
This commit is contained in:
@@ -402,6 +402,10 @@ int ast_sip_auth_vector_init(struct ast_sip_auth_vector *auths, const char *valu
|
|||||||
}
|
}
|
||||||
|
|
||||||
while ((val = strsep(&auth_names, ","))) {
|
while ((val = strsep(&auth_names, ","))) {
|
||||||
|
if (ast_strlen_zero(val)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
val = ast_strdup(val);
|
val = ast_strdup(val);
|
||||||
if (!val) {
|
if (!val) {
|
||||||
goto failure;
|
goto failure;
|
||||||
|
Reference in New Issue
Block a user