]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
avoid assertion
authorwessels <>
Sun, 20 Sep 1998 02:01:06 +0000 (02:01 +0000)
committerwessels <>
Sun, 20 Sep 1998 02:01:06 +0000 (02:01 +0000)
src/neighbors.cc

index dd92d01944132820f294ac27f229f9af9a23eb57..a19e34e6a3924b01c5a1315d5f062dd13307f0d2 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: neighbors.cc,v 1.251 1998/09/19 17:06:07 wessels Exp $
+ * $Id: neighbors.cc,v 1.252 1998/09/19 20:01:06 wessels Exp $
  *
  * DEBUG: section 15    Neighbor Routines
  * AUTHOR: Harvest Derived
@@ -605,7 +605,8 @@ static void
 neighborUpdateRtt(peer * p, MemObject * mem)
 {
     int rtt;
-    assert(mem);
+    if (!mem)
+       return;
     if (!mem->start_ping.tv_sec)
        return;
     rtt = tvSubMsec(mem->start_ping, current_time);