]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Changelog note for #529 and nicer layout.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Fri, 20 Aug 2021 12:32:13 +0000 (14:32 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Fri, 20 Aug 2021 12:32:13 +0000 (14:32 +0200)
- Fix #529: Fix: log_assert does nothing if UNBOUND_DEBUG is
  undefined.

doc/Changelog
util/tube.c

index c02c5d3191e553c88d6f1cef370d3fef77915e5e..7dc5820fc2d1300dd1603d58017f1820be145e9d 100644 (file)
@@ -1,3 +1,7 @@
+20 August 2021: Wouter
+       - Fix #529: Fix: log_assert does nothing if UNBOUND_DEBUG is
+         undefined.
+
 17 August 2021: Wouter
        - Fix that --with-ssl can use "/usr/include/openssl11" to pass the
          location of a different openssl version.
index 8ff474b87c2f7b8f48548ea55a06667804fdf463..40556e72020b1ec2dc4aa9d5e85efea987254530 100644 (file)
@@ -364,9 +364,9 @@ int tube_read_msg(struct tube* tube, uint8_t** buf, uint32_t* len,
                d += r;
        }
        if (*len >= 65536*2) {
-           log_err("tube msg length is too big", *len);
-        (void)fd_set_nonblock(fd);
-        return 0;
+               log_err("tube msg length %u is too big", (unsigned)*len);
+               (void)fd_set_nonblock(fd);
+               return 0;
        }
        *buf = (uint8_t*)malloc(*len);
        if(!*buf) {