projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3bac03
)
dnsd: last commit had a typo :(
author
Denis Vlasenko
<vda.linux@googlemail.com>
Sat, 24 Mar 2007 13:09:07 +0000
(13:09 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Sat, 24 Mar 2007 13:09:07 +0000
(13:09 -0000)
networking/dnsd.c
patch
|
blob
|
history
diff --git
a/networking/dnsd.c
b/networking/dnsd.c
index fd2f421d71a85ec8926727ea47b9970b848ae6c1..2cecf64912ea63e855391f9c1a0ce98657c12531 100644
(file)
--- a/
networking/dnsd.c
+++ b/
networking/dnsd.c
@@
-238,12
+238,12
@@
static int process_packet(uint8_t * buf)
head = (struct dns_head *)buf;
if (head->nquer == 0) {
bb_error_msg("no queries");
- retu
nr
-1;
+ retu
rn
-1;
}
if (head->flags & 0x8000) {
bb_error_msg("ignoring response packet");
- retu
nr
-1;
+ retu
rn
-1;
}
from = (void *)&head[1]; // start of query string
@@
-401,4
+401,5
@@
int dnsd_main(int argc, char **argv)
continue;
sendto(udps, buf, r, 0, &lsa->sa, fromlen);
}
+ return 0;
}