mirror of
https://github.com/yarrick/iodine.git
synced 2024-11-23 10:05:08 +00:00
fatal error
This commit is contained in:
parent
54bacf5b80
commit
5eb02a4bdc
4
dns.c
4
dns.c
@ -209,7 +209,7 @@ dns_read(int fd, char *buf, int buflen)
|
||||
ancount = ntohs(header->ancount);
|
||||
|
||||
for(i=0;i<ancount;i++) {
|
||||
READNAME(buf, name, data);
|
||||
READNAME(packet, name, data);
|
||||
READSHORT(type, data);
|
||||
READSHORT(class, data);
|
||||
READLONG(ttl, data);
|
||||
@ -226,7 +226,7 @@ dns_read(int fd, char *buf, int buflen)
|
||||
READSHORT(priority, r);
|
||||
READSHORT(weight, r);
|
||||
READSHORT(port, r);
|
||||
READNAME(buf, host, r);
|
||||
READNAME(packet, host, r);
|
||||
}
|
||||
printf("%s\n", name);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user