X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fcontext_loop.c;h=9fd9ba8fe4f9b003457879b5ff7bb21ef72eb33a;hb=abeb8adc38f9d55fcb6cb3d076f57239b0a9a4d5;hp=fdd97a819a10c60c240c82b0b4ebf07e598e9700;hpb=d96f96eef3dfd036a06a52740b69ba10cede6d30;p=citadel.git diff --git a/webcit/context_loop.c b/webcit/context_loop.c index fdd97a819..9fd9ba8fe 100644 --- a/webcit/context_loop.c +++ b/webcit/context_loop.c @@ -298,7 +298,7 @@ void context_loop(int sock) */ if (!strncasecmp(buf, "Cookie: webcit=", 15)) { cookie_to_stuff(&buf[15], &desired_session, - NULL, NULL, NULL); + NULL, 0, NULL, 0, NULL, 0); got_cookie = 1; } @@ -307,8 +307,8 @@ void context_loop(int sock) */ if (!strncasecmp(buf, "Authorization: Basic ", 21)) { CtdlDecodeBase64(httpauth_string, &buf[21], strlen(&buf[21])); - extract_token(httpauth_user, httpauth_string, 0, ':'); - extract_token(httpauth_pass, httpauth_string, 1, ':'); + extract_token(httpauth_user, httpauth_string, 0, ':', sizeof httpauth_user); + extract_token(httpauth_pass, httpauth_string, 1, ':', sizeof httpauth_pass); } /*