forked from Mirrors/freeswitch
tweak for picky compiler
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8671 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
1a2131deb8
commit
09390e7005
@ -162,13 +162,13 @@ static abyss_bool http_directory_auth(TSession *r, char *domain_name)
|
||||
p = RequestHeaderValue(r, "authorization");
|
||||
|
||||
if (p) {
|
||||
NextToken((const char **)&p);
|
||||
NextToken((const char ** const)&p);
|
||||
x = GetToken(&p);
|
||||
if (x) {
|
||||
if (!strcasecmp(x, "basic")) {
|
||||
|
||||
|
||||
NextToken((const char **)&p);
|
||||
NextToken((const char ** const)&p);
|
||||
switch_b64_decode(p, user, sizeof(user));
|
||||
if ((pass = strchr(user, ':'))) {
|
||||
*pass++ = '\0';
|
||||
|
Loading…
Reference in New Issue
Block a user