From: amosjeffries <> Date: Thu, 2 Aug 2007 04:36:02 +0000 (+0000) Subject: Typo picked up by Coverity checker. X-Git-Tag: SQUID_3_0_PRE7~137 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7b417e31b12c7c4e1d7e340f255d5d8b3e3992a2;p=thirdparty%2Fsquid.git Typo picked up by Coverity checker. Would lead to memory overruns when built with older compilers. New compilers can retrieve type properly in most cases. --- diff --git a/src/asn.cc b/src/asn.cc index c3fcee7db8..423ef0c010 100644 --- a/src/asn.cc +++ b/src/asn.cc @@ -1,6 +1,6 @@ /* - * $Id: asn.cc,v 1.112 2007/04/30 16:56:09 wessels Exp $ + * $Id: asn.cc,v 1.113 2007/08/01 22:36:02 amosjeffries Exp $ * * DEBUG: section 53 AS Number handling * AUTHOR: Duane Wessels, Kostas Anagnostakis @@ -468,7 +468,7 @@ asnAddNet(char *as_string, int as_number) } } else { q = new List (as_number); - asinfo = (as_info *)xmalloc(sizeof(asinfo)); + asinfo = (as_info *)xmalloc(sizeof(as_info)); asinfo->as_number = q; rn = squid_rn_addroute(e->e_addr, e->e_mask, AS_tree_head, e->e_nodes); rn = squid_rn_match(e->e_addr, AS_tree_head);