mirror of
https://github.com/yarrick/iodine.git
synced 2024-11-03 06:57:27 +00:00
Fix decodepacket oboe
This commit is contained in:
parent
20e2ffe5e2
commit
f76b8e410b
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) {
|
||||
|
|
Loading…
Reference in a new issue