From c44d8b51ffb5a413f8bbdbd9991bbc573853e397 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henryk=20Pl=C3=B6tz?= Date: Fri, 3 Oct 2014 20:04:14 +0200 Subject: Apply patch djbdns-1.05-test27.diff.bz2 Source was http://www.fefe.de/dns/djbdns-1.05-test27.diff.bz2, SHA1 f0380ec1866f49c0bcf6369a923ac0a4a5095da8 --- dnsfilter.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'dnsfilter.c') diff --git a/dnsfilter.c b/dnsfilter.c index 9e6863a..822ff1e 100644 --- a/dnsfilter.c +++ b/dnsfilter.c @@ -12,6 +12,7 @@ #include "iopause.h" #include "error.h" #include "exit.h" +#include "ip6.h" #define FATAL "dnsfilter: fatal: " @@ -44,7 +45,7 @@ int flag0 = 1; iopause_fd *io; int iolen; -char servers[64]; +char servers[256]; char ip[4]; char name[DNS_NAME4_DOMAIN]; @@ -191,7 +192,7 @@ int main(int argc,char **argv) dns_name4_domain(name,ip); if (dns_resolvconfip(servers) == -1) strerr_die2sys(111,FATAL,"unable to read /etc/resolv.conf: "); - if (dns_transmit_start(&x[xnum].dt,servers,1,name,DNS_T_PTR,"\0\0\0\0") == -1) + if (dns_transmit_start(&x[xnum].dt,servers,1,name,DNS_T_PTR,V6any) == -1) errout(xnum); else { x[xnum].flagactive = 1; -- cgit v1.2.3