]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fixed paranoid check for large objects in field_store structure.
authorrousskov <>
Tue, 24 Feb 1998 03:27:17 +0000 (03:27 +0000)
committerrousskov <>
Tue, 24 Feb 1998 03:27:17 +0000 (03:27 +0000)
    assert(sizeof(field_store) == sizeof(char*));
Used to compare with sizeof(int)

src/HttpHeader.cc

index 9d18f38697a048fb6dc4f5f1f72b46f205d688a8..205f277b881e2fde92cd466aa7a3a5c59cbc4da2 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: HttpHeader.cc,v 1.5 1998/02/23 05:38:49 rousskov Exp $
+ * $Id: HttpHeader.cc,v 1.6 1998/02/23 20:27:17 rousskov Exp $
  *
  * DEBUG: section 55    HTTP Header
  * AUTHOR: Alex Rousskov
@@ -327,7 +327,7 @@ void
 httpHeaderInitModule()
 {
     /* paranoid check if smbd put a big object into field_store */
-    assert(sizeof(field_store) == 4);
+    assert(sizeof(field_store) == sizeof(char*));
     /* have to force removal of const here */
     httpHeaderInitAttrTable((field_attrs_t *)Headers, countof(Headers));
     httpHeaderInitAttrTable((field_attrs_t *)SccAttrs, countof(SccAttrs));