]> git.pld-linux.org Git - packages/squid.git/blob - squid-2.5.STABLE2-external_acl_crash.patch
- more patches:
[packages/squid.git] / squid-2.5.STABLE2-external_acl_crash.patch
1 Index: squid/src/external_acl.c
2 diff -c squid/src/external_acl.c:1.1.2.20 squid/src/external_acl.c:1.1.2.21
3 *** squid/src/external_acl.c:1.1.2.20   Tue Mar 18 15:05:17 2003
4 --- squid/src/external_acl.c    Mon Mar 24 10:25:51 2003
5 ***************
6 *** 684,690 ****
7       char *t;
8       char *user = NULL;
9       char *error = NULL;
10 !     external_acl_entry *entry;
11   
12       debug(82, 2) ("externalAclHandleReply: reply=\"%s\"\n", reply);
13   
14 --- 684,690 ----
15       char *t;
16       char *user = NULL;
17       char *error = NULL;
18 !     external_acl_entry *entry = NULL;
19   
20       debug(82, 2) ("externalAclHandleReply: reply=\"%s\"\n", reply);
21   
22 ***************
23 *** 709,721 ****
24         if (reply)
25             entry = external_acl_cache_add(state->def, state->key, result, user, error);
26         else {
27 !           entry = hash_lookup(state->def->cache, state->key);
28 !           if (entry)
29 !               external_acl_cache_delete(state->def, entry);
30         }
31 !     } else
32 !       entry = NULL;
33
34       do {
35         cbdataUnlock(state->def);
36         state->def = NULL;
37 --- 709,719 ----
38         if (reply)
39             entry = external_acl_cache_add(state->def, state->key, result, user, error);
40         else {
41 !           external_acl_entry *oldentry = hash_lookup(state->def->cache, state->key);
42 !           if (oldentry)
43 !               external_acl_cache_delete(state->def, oldentry);
44         }
45 !     }
46       do {
47         cbdataUnlock(state->def);
48         state->def = NULL;
This page took 0.068473 seconds and 3 git commands to generate.