From: wessels <> Date: Tue, 17 Sep 1996 11:16:57 +0000 (+0000) Subject: fixed 8k page leak X-Git-Tag: SQUID_3_0_PRE1~5775 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ceb8983bf3cd5d9c2090d6a9c8bb28a814a3d05b;p=thirdparty%2Fsquid.git fixed 8k page leak --- diff --git a/src/icmp.cc b/src/icmp.cc index 331e321f25..16c88e2648 100644 --- a/src/icmp.cc +++ b/src/icmp.cc @@ -1,6 +1,6 @@ /* - * $Id: icmp.cc,v 1.4 1996/09/16 21:50:24 wessels Exp $ + * $Id: icmp.cc,v 1.5 1996/09/17 05:16:57 wessels Exp $ * * DEBUG: section 37 ICMP Routines * AUTHOR: Duane Wessels @@ -245,12 +245,12 @@ icmpRecv(int unused1, void *unused2) ip = (struct iphdr *) pkt; iphdrlen = ip->ip_hl << 2; icmp = (struct icmphdr *) (pkt + iphdrlen); - if (icmp->icmp_type != ICMP_ECHOREPLY) - return; - if (icmp->icmp_id != icmp_ident) - return; - hops = ipHops(ip->ip_ttl); - icmpProcessReply(&from, icmp, hops); + if (icmp->icmp_type == ICMP_ECHOREPLY) { + if (icmp->icmp_id == icmp_ident) { + hops = ipHops(ip->ip_ttl); + icmpProcessReply(&from, icmp, hops); + } + } put_free_8k_page(pkt); }