Fix decodepacket oboe

This commit is contained in:
Bjorn Andersson 2006-06-11 18:19:50 +00:00
parent 20e2ffe5e2
commit f76b8e410b
2 changed files with 1 additions and 4 deletions

3
dns.c
View file

@ -319,7 +319,6 @@ dns_write(int fd, int id, char *buf, int len, char flag)
} }
strncpy(d, topdomain, strlen(topdomain)+1); strncpy(d, topdomain, strlen(topdomain)+1);
//printf("Resolving %s\n", data);
dns_query(fd, id, data, T_NULL); dns_query(fd, id, data, T_NULL);
return avail; return avail;
} }
@ -518,7 +517,7 @@ decodepacket(const char *name, char *buf, int buflen)
buf[0] = name[0]; buf[0] = name[0];
dp = buf; dp = buf + 1;
np = name + 1; np = name + 1;
while(len < buflen && np < domain) { while(len < buflen && np < domain) {

View file

@ -278,8 +278,6 @@ main(int argc, char **argv)
tunnel(tun_fd, dns_fd); tunnel(tun_fd, dns_fd);
printf("Closing tunnel\n");
cleanup2: cleanup2:
close_dns(dns_fd); close_dns(dns_fd);
close_tun(tun_fd); close_tun(tun_fd);