diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-03-24 16:09:07 +0300 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-03-24 16:09:07 +0300 |
commit | b5b45a91f0f2d3f57864b49eb3126c9eb6a2b1eb (patch) | |
tree | aa0cad5b7f1f1638b3949526f91e4a69bc641877 /networking/dnsd.c | |
parent | d3bac03988b104998c90dbce50e152668c3e4f5d (diff) |
dnsd: last commit had a typo :(
Diffstat (limited to 'networking/dnsd.c')
-rw-r--r-- | networking/dnsd.c | 5 |
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) head = (struct dns_head *)buf; if (head->nquer == 0) { bb_error_msg("no queries"); - retunr -1; + return -1; } if (head->flags & 0x8000) { bb_error_msg("ignoring response packet"); - retunr -1; + return -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; } |