fix: allow mmsbox incoming mmsc conn without auth
This commit is contained in:
parent
1bd576132d
commit
9e59d79de5
|
@ -43,6 +43,13 @@ static int auth_check(Octstr *user, Octstr *pass, List *headers)
|
|||
int i, res = -1;
|
||||
Octstr *v = http_header_value(headers, octstr_imm("Authorization"));
|
||||
Octstr *p = NULL, *q = NULL;
|
||||
|
||||
if (user == NULL ||
|
||||
octstr_len(user) == 0) {
|
||||
res = 0;
|
||||
goto done;
|
||||
}
|
||||
|
||||
if (!v ||
|
||||
octstr_search(v, octstr_imm("Basic "), 0) != 0)
|
||||
goto done;
|
||||
|
|
Loading…
Reference in New Issue