You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Sean Welch <we...@wired.com> on 1996/04/20 02:13:45 UTC
mod_digest.c patch
Here's a small patch to fix a core dump problem.
The diff is against the 1.1b1b source tree.
Sean
*** mod_digest.old.c Fri Apr 19 16:32:56 1996
--- mod_digest.c Fri Apr 19 16:34:28 1996
***************
*** 121,127 ****
int get_digest_rec(request_rec *r, digest_header_rec *response) {
char *auth_line = table_get(r->headers_in, "Authorization");
! int l = strlen(auth_line);
int s = 0, vk = 0, vv = 0;
char *t, *key, *value;
--- 121,127 ----
int get_digest_rec(request_rec *r, digest_header_rec *response) {
char *auth_line = table_get(r->headers_in, "Authorization");
! int l;
int s = 0, vk = 0, vv = 0;
char *t, *key, *value;
***************
*** 138,143 ****
--- 138,145 ----
return AUTH_REQUIRED;
}
+ l = strlen(auth_line);
+
if (strcmp(getword (r->pool, &auth_line, ' '), "Digest")) {
/* Client tried to authenticate using wrong auth scheme */
log_reason ("client used wrong authentication scheme", r->uri, r);