mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-02-03 20:29:28 -05:00
- Fix proxy length debug output printout typecasts.
This commit is contained in:
parent
b043bc5eb4
commit
bf1cce6f9b
2 changed files with 5 additions and 4 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue