dnsd: last commit had a typo :(
This commit is contained in:
parent
d3bac03988
commit
b5b45a91f0
@ -238,12 +238,12 @@ static int process_packet(uint8_t * buf)
|
|||||||
head = (struct dns_head *)buf;
|
head = (struct dns_head *)buf;
|
||||||
if (head->nquer == 0) {
|
if (head->nquer == 0) {
|
||||||
bb_error_msg("no queries");
|
bb_error_msg("no queries");
|
||||||
retunr -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (head->flags & 0x8000) {
|
if (head->flags & 0x8000) {
|
||||||
bb_error_msg("ignoring response packet");
|
bb_error_msg("ignoring response packet");
|
||||||
retunr -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
from = (void *)&head[1]; // start of query string
|
from = (void *)&head[1]; // start of query string
|
||||||
@ -401,4 +401,5 @@ int dnsd_main(int argc, char **argv)
|
|||||||
continue;
|
continue;
|
||||||
sendto(udps, buf, r, 0, &lsa->sa, fromlen);
|
sendto(udps, buf, r, 0, &lsa->sa, fromlen);
|
||||||
}
|
}
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user