1
0
Fork 0

fix: allow mmsbox incoming mmsc conn without auth

This commit is contained in:
bagyenda 2006-05-23 12:38:24 +00:00
parent 1bd576132d
commit 9e59d79de5
1 changed files with 7 additions and 0 deletions

View File

@ -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;