]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix compile warning for type cast in http2_submit_dns_response.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Fri, 27 Nov 2020 08:08:48 +0000 (09:08 +0100)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Fri, 27 Nov 2020 08:08:48 +0000 (09:08 +0100)
doc/Changelog
services/listen_dnsport.c

index d0b9f223cc15979b47e3f8081722c068733ed288..4664c3423ffc09bf43b59165eb5d099d7e481600 100644 (file)
@@ -1,3 +1,6 @@
+27 November 2020: Wouter
+       - Fix compile warning for type cast in http2_submit_dns_response.
+
 26 November 2020: Wouter
        - Fix to omit UDP receive errors from log, if verbosity low.
          These happen because of udp-connect.
index bd87aac56fa7b880b5d2f954769631400bce80a0..d63c0e0aab00e1c89dc342db7691d83890ae708f 100644 (file)
@@ -2208,7 +2208,7 @@ int http2_submit_dns_response(struct http2_session* h2_session)
        }
 
        rlen = sldns_buffer_remaining(h2_session->c->buffer);
-       snprintf(rlen_str, sizeof(rlen_str), "%u", rlen);
+       snprintf(rlen_str, sizeof(rlen_str), "%u", (unsigned)rlen);
 
        lock_basic_lock(&http2_response_buffer_count_lock);
        if(http2_response_buffer_count + rlen > http2_response_buffer_max) {