projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge setsockopt error messages
[oweals/busybox.git]
/
networking
/
dnsd.c
diff --git
a/networking/dnsd.c
b/networking/dnsd.c
index fe98400f7d6047fc38c40e02f317afa8e51b4c2d..923ad6bc6ba1823a1f754ddfc7a0a02455c294d2 100644
(file)
--- a/
networking/dnsd.c
+++ b/
networking/dnsd.c
@@
-194,7
+194,7
@@
static char *table_lookup(struct dns_entry *d,
if ((len != 1 || d->name[1] != '*')
/* we assume (do not check) that query_string
* ends in ".in-addr.arpa" */
if ((len != 1 || d->name[1] != '*')
/* we assume (do not check) that query_string
* ends in ".in-addr.arpa" */
- &&
strncmp(d->rip, query_string, strlen(d->rip)) == 0
+ &&
is_prefixed_with(query_string, d->rip)
) {
#if DEBUG
fprintf(stderr, "Found name:%s\n", d->name);
) {
#if DEBUG
fprintf(stderr, "Found name:%s\n", d->name);