|
|
@ -1,46 +0,0 @@ |
|
|
|
From a1f9e4e58dcdc7ea4e3b2bd3df110f10d23b437c Mon Sep 17 00:00:00 2001 |
|
|
|
From: Moritz Warning <moritzwarning@web.de> |
|
|
|
Date: Sun, 14 Jan 2018 21:47:24 +0100 |
|
|
|
Subject: [PATCH] fix type of returned address count |
|
|
|
|
|
|
|
---
|
|
|
|
src/ext-dns.c | 8 ++++---- |
|
|
|
1 file changed, 4 insertions(+), 4 deletions(-) |
|
|
|
|
|
|
|
diff --git a/src/ext-dns.c b/src/ext-dns.c
|
|
|
|
index 3394e33..89a2311 100644
|
|
|
|
--- a/src/ext-dns.c
|
|
|
|
+++ b/src/ext-dns.c
|
|
|
|
@@ -470,9 +470,9 @@ static void setPointerRecord( struct ResourceRecord *rr, const char name[], cons
|
|
|
|
rr->rd_data.ptr_record.name = domain; |
|
|
|
} |
|
|
|
|
|
|
|
-static int dns_setup_msg( struct Message *msg, IP addrs[], size_t addrs_num, const char* hostname ) {
|
|
|
|
+static int dns_setup_msg( struct Message *msg, IP addrs[], int addrs_num, const char* hostname ) {
|
|
|
|
const char *qName; |
|
|
|
- size_t i, c;
|
|
|
|
+ int i, c;
|
|
|
|
|
|
|
|
// Header: leave most values intact for response |
|
|
|
msg->qr = 1; // This is a response |
|
|
|
@@ -606,7 +606,7 @@ static void proxy_forward_response( uint8_t *buffer, ssize_t buflen, uint16_t id
|
|
|
|
static void dns_handler( int rc, int sock ) { |
|
|
|
struct Message msg; |
|
|
|
IP clientaddr; |
|
|
|
- size_t addrs_num;
|
|
|
|
+ int addrs_num;
|
|
|
|
IP addrs[MAX_ADDR_RECORDS]; |
|
|
|
socklen_t addrlen_ret; |
|
|
|
ssize_t buflen; |
|
|
|
@@ -702,7 +702,7 @@ log_info("setup response");
|
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
- log_debug( "DNS: Send back %lu addresses to: %s",
|
|
|
|
+ log_debug( "DNS: Send back %d addresses to: %s",
|
|
|
|
addrs_num, str_addr( &clientaddr ) |
|
|
|
); |
|
|
|
} |
|
|
|
--
|
|
|
|
2.15.1 |
|
|
|
|