aboutsummaryrefslogtreecommitdiff
path: root/networking/dnsd.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-03-24 13:09:07 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-03-24 13:09:07 +0000
commitb5b45a91f0f2d3f57864b49eb3126c9eb6a2b1eb (patch)
treeaa0cad5b7f1f1638b3949526f91e4a69bc641877 /networking/dnsd.c
parentd3bac03988b104998c90dbce50e152668c3e4f5d (diff)
downloadbusybox-w32-b5b45a91f0f2d3f57864b49eb3126c9eb6a2b1eb.tar.gz
busybox-w32-b5b45a91f0f2d3f57864b49eb3126c9eb6a2b1eb.tar.bz2
busybox-w32-b5b45a91f0f2d3f57864b49eb3126c9eb6a2b1eb.zip
dnsd: last commit had a typo :(
Diffstat (limited to 'networking/dnsd.c')
-rw-r--r--networking/dnsd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/networking/dnsd.c b/networking/dnsd.c
index fd2f421d7..2cecf6491 100644
--- a/networking/dnsd.c
+++ b/networking/dnsd.c
@@ -238,12 +238,12 @@ static int process_packet(uint8_t * buf)
238 head = (struct dns_head *)buf; 238 head = (struct dns_head *)buf;
239 if (head->nquer == 0) { 239 if (head->nquer == 0) {
240 bb_error_msg("no queries"); 240 bb_error_msg("no queries");
241 retunr -1; 241 return -1;
242 } 242 }
243 243
244 if (head->flags & 0x8000) { 244 if (head->flags & 0x8000) {
245 bb_error_msg("ignoring response packet"); 245 bb_error_msg("ignoring response packet");
246 retunr -1; 246 return -1;
247 } 247 }
248 248
249 from = (void *)&head[1]; // start of query string 249 from = (void *)&head[1]; // start of query string
@@ -401,4 +401,5 @@ int dnsd_main(int argc, char **argv)
401 continue; 401 continue;
402 sendto(udps, buf, r, 0, &lsa->sa, fromlen); 402 sendto(udps, buf, r, 0, &lsa->sa, fromlen);
403 } 403 }
404 return 0;
404} 405}