mirror of
https://github.com/yarrick/iodine.git
synced 2024-12-23 05:43:32 +02:00
Fix decodepacket oboe
This commit is contained in:
parent
20e2ffe5e2
commit
f76b8e410b
2 changed files with 1 additions and 4 deletions
3
dns.c
3
dns.c
|
@ -319,7 +319,6 @@ dns_write(int fd, int id, char *buf, int len, char flag)
|
|||
}
|
||||
strncpy(d, topdomain, strlen(topdomain)+1);
|
||||
|
||||
//printf("Resolving %s\n", data);
|
||||
dns_query(fd, id, data, T_NULL);
|
||||
return avail;
|
||||
}
|
||||
|
@ -518,7 +517,7 @@ decodepacket(const char *name, char *buf, int buflen)
|
|||
|
||||
buf[0] = name[0];
|
||||
|
||||
dp = buf;
|
||||
dp = buf + 1;
|
||||
np = name + 1;
|
||||
|
||||
while(len < buflen && np < domain) {
|
||||
|
|
2
iodine.c
2
iodine.c
|
@ -278,8 +278,6 @@ main(int argc, char **argv)
|
|||
|
||||
tunnel(tun_fd, dns_fd);
|
||||
|
||||
printf("Closing tunnel\n");
|
||||
|
||||
cleanup2:
|
||||
close_dns(dns_fd);
|
||||
close_tun(tun_fd);
|
||||
|
|
Loading…
Reference in a new issue