]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
assertion found bug
authorwessels <>
Fri, 8 May 1998 22:40:35 +0000 (22:40 +0000)
committerwessels <>
Fri, 8 May 1998 22:40:35 +0000 (22:40 +0000)
src/net_db.cc

index e993166e5c227b3a26398fe6261c0076881a3d0a..01c0d37b9f121d745ab761e1fbe9f119aca47c40 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: net_db.cc,v 1.92 1998/05/06 20:09:15 wessels Exp $
+ * $Id: net_db.cc,v 1.93 1998/05/08 16:40:35 wessels Exp $
  *
  * DEBUG: section 37    Network Measurement Database
  * AUTHOR: Duane Wessels
@@ -898,11 +898,15 @@ netdbBinaryExchange(StoreEntry * s)
        j = htonl((int) (n->hops * 1000));
        xmemcpy(&buf[i], &j, sizeof(int));
        i += sizeof(int);
-       if (i + rec_sz > 4096 || next == NULL) {
+       if (i + rec_sz > 4096) {
            storeAppend(s, buf, i);
            i = 0;
        }
     }
+    if (i > 0) {
+       storeAppend(s, buf, i);
+       i = 0;
+    }
     assert(0 == i);
     storeBufferFlush(s);
 #else