~ubuntu-branches/ubuntu/jaunty/squid3/jaunty-security

« back to all changes in this revision

Viewing changes to src/StoreMeta.cc

  • Committer: Bazaar Package Importer
  • Author(s): Luigi Gangitano
  • Date: 2008-04-03 01:34:07 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20080403013407-g4ppxoyao3efx50n
Tags: 3.0.STABLE4-1

New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
 
2
2
/*
3
 
 * $Id: StoreMeta.cc,v 1.6 2007/09/19 08:54:51 hno Exp $
 
3
 * $Id: StoreMeta.cc,v 1.6.2.2 2008/02/24 11:29:55 amosjeffries Exp $
4
4
 *
5
5
 * DEBUG: section 20    Storage Manager Swapfile Metadata
6
6
 * AUTHOR: Kostas Anagnostakis
48
48
StoreMeta::validType(char type)
49
49
{
50
50
    /* VOID is reserved, and new types have to be added as classes */
51
 
 
52
 
    if (type <= STORE_META_VOID || type >= STORE_META_END) {
 
51
    if (type <= STORE_META_VOID || type >= STORE_META_END + 10) {
53
52
        debugs(20, 0, "storeSwapMetaUnpack: bad type (" << type << ")!");
54
53
        return false;
55
54
    }
56
55
 
 
56
    /* Not yet implemented */
 
57
    if (type >= STORE_META_END ||
 
58
            type == STORE_META_STOREURL ||
 
59
            type == STORE_META_VARY_ID) {
 
60
        debugs(20, 3, "storeSwapMetaUnpack: Not yet implemented (" << type << ") in disk metadata");
 
61
        return false;
 
62
    }
 
63
 
57
64
    /* Unused in any current squid code */
58
65
    if (type == STORE_META_KEY_URL ||
59
66
            type == STORE_META_KEY_SHA ||