chiark / gitweb /
@@ -1,6 +1,8 @@
authorian <ian>
Tue, 9 May 2000 22:08:06 +0000 (22:08 +0000)
committerian <ian>
Tue, 9 May 2000 22:08:06 +0000 (22:08 +0000)
+  * Call MEM_ROUND in __transfer_interim (avoids assert fail
+    `qu->interim_allocd>=0' on some platforms eg 64 bit).

changelog
src/query.c

index 20fcbf2ba3c4896b5cd3442ef265187290dfad07..2b3bbf59eea52f086ce0538232d9c1777faecce1 100644 (file)
--- a/changelog
+++ b/changelog
@@ -1,6 +1,8 @@
 adns (0.9) unstable; urgency=low
 
   * Move `extern "C" {' to after #include <...>'s.
+  * Call MEM_ROUND in __transfer_interim (avoids assert fail
+    `qu->interim_allocd>=0' on some platforms eg 64 bit).
 
  --
 
index a720f2058226990a92b596bb1f0dc5852da80d36..966f40974f31d6d55655901340caff7bcb5a90d3 100644 (file)
@@ -374,6 +374,7 @@ void adns__transfer_interim(adns_query from, adns_query to, void *block, size_t
   LIST_UNLINK(from->allocations,an);
   LIST_LINK_TAIL(to->allocations,an);
 
+  sz= MEM_ROUND(sz);
   from->interim_allocd -= sz;
   to->interim_allocd += sz;