This commit is contained in:
Julian Kranz 2012-01-06 18:16:49 +01:00 committed by Barak A. Pearlmutter
parent 2fb570ba72
commit ee33069f6d
1 changed files with 2 additions and 2 deletions

View File

@ -727,7 +727,7 @@ read_dns_withq(int dns_fd, int tun_fd, char *buf, int buflen, struct query *q)
struct ip *hdr;
hdr = (struct ip*) (buf + 4);
write_tun(tun_fd, buf, datalen, hdr->ip_v);
write_tun(tun_fd, (unsigned char*)buf, datalen, hdr->ip_v);
}
/* don't process any further */
@ -1084,7 +1084,7 @@ tunnel_dns(int tun_fd, int dns_fd)
struct ip *hdr;
hdr = (struct ip*) (buf + 4);
write_tun(tun_fd, buf, datalen, hdr->ip_v);
write_tun(tun_fd, (unsigned char*)buf, datalen, hdr->ip_v);
}
inpkt.len = 0;
/* Keep .seqno and .fragment as is, so that we won't