mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
- Fix compile warning for type cast in http2_submit_dns_response.
This commit is contained in:
parent
3fb0493d3f
commit
11139c1b4e
2 changed files with 4 additions and 1 deletions
|
|
@ -1,3 +1,6 @@
|
||||||
|
27 November 2020: Wouter
|
||||||
|
- Fix compile warning for type cast in http2_submit_dns_response.
|
||||||
|
|
||||||
26 November 2020: Wouter
|
26 November 2020: Wouter
|
||||||
- Fix to omit UDP receive errors from log, if verbosity low.
|
- Fix to omit UDP receive errors from log, if verbosity low.
|
||||||
These happen because of udp-connect.
|
These happen because of udp-connect.
|
||||||
|
|
|
||||||
|
|
@ -2208,7 +2208,7 @@ int http2_submit_dns_response(struct http2_session* h2_session)
|
||||||
}
|
}
|
||||||
|
|
||||||
rlen = sldns_buffer_remaining(h2_session->c->buffer);
|
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);
|
lock_basic_lock(&http2_response_buffer_count_lock);
|
||||||
if(http2_response_buffer_count + rlen > http2_response_buffer_max) {
|
if(http2_response_buffer_count + rlen > http2_response_buffer_max) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue