fatal error

This commit is contained in:
Bjorn Andersson 2006-06-05 15:38:06 +00:00
parent 54bacf5b80
commit 5eb02a4bdc

4
dns.c
View file

@ -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);
} }