]> git.pld-linux.org Git - packages/squid.git/blame - squid-2.5.STABLE6-digest_crash.patch
- added security patches from squids site:
[packages/squid.git] / squid-2.5.STABLE6-digest_crash.patch
CommitLineData
365b8bdf 1Index: squid/src/auth/digest/auth_digest.c
2diff -c squid/src/auth/digest/auth_digest.c:1.10.2.12 squid/src/auth/digest/auth_digest.c:1.10.2.13
3*** squid/src/auth/digest/auth_digest.c:1.10.2.12 Sat Apr 17 19:29:52 2004
4--- squid/src/auth/digest/auth_digest.c Sat Aug 28 16:31:15 2004
5***************
6*** 893,899 ****
7 if (reply) {
8 if ((t = strchr(reply, ' ')))
9 *t = '\0';
10! if (*reply == '\0')
11 reply = NULL;
12 }
13 assert(r->auth_user_request != NULL);
14--- 893,899 ----
15 if (reply) {
16 if ((t = strchr(reply, ' ')))
17 *t = '\0';
18! if (*reply == '\0' || *reply == '\n')
19 reply = NULL;
20 }
21 assert(r->auth_user_request != NULL);
22***************
23*** 903,909 ****
24 digest_user = auth_user_request->auth_user->scheme_data;
25 if (reply && (strncasecmp(reply, "ERR", 3) == 0))
26 digest_request->flags.credentials_ok = 3;
27! else {
28 CvtBin(reply, digest_user->HA1);
29 digest_user->HA1created = 1;
30 }
31--- 903,909 ----
32 digest_user = auth_user_request->auth_user->scheme_data;
33 if (reply && (strncasecmp(reply, "ERR", 3) == 0))
34 digest_request->flags.credentials_ok = 3;
35! else if (reply) {
36 CvtBin(reply, digest_user->HA1);
37 digest_user->HA1created = 1;
38 }
This page took 0.026444 seconds and 4 git commands to generate.