From: rousskov <> Date: Tue, 24 Feb 1998 03:27:17 +0000 (+0000) Subject: Fixed paranoid check for large objects in field_store structure. X-Git-Tag: SQUID_3_0_PRE1~4018 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03cedd78976a5c7274eb2f460abffa2d94898ad4;p=thirdparty%2Fsquid.git Fixed paranoid check for large objects in field_store structure. assert(sizeof(field_store) == sizeof(char*)); Used to compare with sizeof(int) --- diff --git a/src/HttpHeader.cc b/src/HttpHeader.cc index 9d18f38697..205f277b88 100644 --- a/src/HttpHeader.cc +++ b/src/HttpHeader.cc @@ -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));