]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix proxy length debug output printout typecasts.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Thu, 6 Oct 2022 13:53:21 +0000 (15:53 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Thu, 6 Oct 2022 13:53:21 +0000 (15:53 +0200)
doc/Changelog
util/netevent.c

index 61a10f9a55b8458794a1d5fc1bcd256a4fc2034b..b73b8bdd191af2b3c2fdb8a2c43df4c5601f2a99 100644 (file)
@@ -2,6 +2,7 @@
        - Fix to stop responses with TC flag from resulting in partial
          responses. It retries to fetch the data elsewhere, or fails the
          query and in depth fix removes the TC flag from the cached item.
+       - Fix proxy length debug output printout typecasts.
 
 5 October 2022: Wouter
        - Fix dnscrypt compile for proxy protocol code changes.
index 55c9a041fb5db6755d9d2dcfe292973d82e6d9b2..9e5436b93007268048c2de0954fd44986ba8a16d 100644 (file)
@@ -1634,7 +1634,7 @@ ssl_handle_read(struct comm_point* c)
                        }
                        verbose(VERB_ALGO, "proxy_protocol: reading fixed "
                                "part of PROXYv2 header (len %lu)",
-                               want_read_size);
+                               (unsigned long)want_read_size);
                        current_read_size = want_read_size;
                        if(c->tcp_byte_count < current_read_size) {
                                ERR_clear_error();
@@ -1692,7 +1692,7 @@ ssl_handle_read(struct comm_point* c)
                        }
                        verbose(VERB_ALGO, "proxy_protocol: reading variable "
                                "part of PROXYv2 header (len %lu)",
-                               want_read_size);
+                               (unsigned long)want_read_size);
                        current_read_size = PP2_HEADER_SIZE + want_read_size;
                        if(c->tcp_byte_count < current_read_size) {
                                ERR_clear_error();
@@ -2045,7 +2045,7 @@ comm_point_tcp_handle_read(int fd, struct comm_point* c, int short_ok)
                        }
                        verbose(VERB_ALGO, "proxy_protocol: reading fixed "
                                "part of PROXYv2 header (len %lu)",
-                               want_read_size);
+                               (unsigned long)want_read_size);
                        current_read_size = want_read_size;
                        if(c->tcp_byte_count < current_read_size) {
                                r = recv(fd, (void*)sldns_buffer_at(c->buffer,
@@ -2081,7 +2081,7 @@ comm_point_tcp_handle_read(int fd, struct comm_point* c, int short_ok)
                        }
                        verbose(VERB_ALGO, "proxy_protocol: reading variable "
                                "part of PROXYv2 header (len %lu)",
-                               want_read_size);
+                               (unsigned long)want_read_size);
                        current_read_size = PP2_HEADER_SIZE + want_read_size;
                        if(c->tcp_byte_count < current_read_size) {
                                r = recv(fd, (void*)sldns_buffer_at(c->buffer,