- Fix proxy length debug output printout typecasts.

This commit is contained in:
W.C.A. Wijngaards 2022-10-06 15:53:21 +02:00
parent b043bc5eb4
commit bf1cce6f9b
2 changed files with 5 additions and 4 deletions

View 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.

View 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,