mirror of
https://github.com/yarrick/iodine.git
synced 2024-11-23 00:29:20 +02: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);
|
ancount = ntohs(header->ancount);
|
||||||
|
|
||||||
for(i=0;i<ancount;i++) {
|
for(i=0;i<ancount;i++) {
|
||||||
READNAME(buf, name, data);
|
READNAME(packet, name, data);
|
||||||
READSHORT(type, data);
|
READSHORT(type, data);
|
||||||
READSHORT(class, data);
|
READSHORT(class, data);
|
||||||
READLONG(ttl, data);
|
READLONG(ttl, data);
|
||||||
|
@ -226,7 +226,7 @@ dns_read(int fd, char *buf, int buflen)
|
||||||
READSHORT(priority, r);
|
READSHORT(priority, r);
|
||||||
READSHORT(weight, r);
|
READSHORT(weight, r);
|
||||||
READSHORT(port, r);
|
READSHORT(port, r);
|
||||||
READNAME(buf, host, r);
|
READNAME(packet, host, r);
|
||||||
}
|
}
|
||||||
printf("%s\n", name);
|
printf("%s\n", name);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue