summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Kelley <simon@thekelleys.org.uk>2014-02-23 15:24:26 +0000
committerSimon Kelley <simon@thekelleys.org.uk>2014-02-23 15:24:26 +0000
commitf2e4c277c49761479c9fc8ae7a7024e8a59aced2 (patch)
treeec4d7fde8b05a398cedf194bd09bf2c60480610e
parent5107ace14a87f9d67584d62dcaebe1bbeed1619f (diff)
downloaddnsmasq-f2e4c277c49761479c9fc8ae7a7024e8a59aced2.tar.gz
Bugfix for last commit.
-rw-r--r--src/dnssec.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dnssec.c b/src/dnssec.c
index 760f4c2..123a3df 100644
--- a/src/dnssec.c
+++ b/src/dnssec.c
@@ -1520,13 +1520,13 @@ static int prove_non_existance_nsec3(struct dns_header *header, size_t plen, uns
{
/* Normal case, hash falls between NSEC3 name-hash and next domain name-hash,
wrap around case, name-hash falls between NSEC3 name-hash and end */
- if (memcmp(p, name, digest_size) > 0 || memcmp(workspace2, p, digest_size) > 0)
+ if (memcmp(p, digest, digest_size) > 0 || memcmp(workspace2, p, digest_size) > 0)
return STAT_SECURE;
}
else
{
/* wrap around case, name falls between start and next domain name */
- if (memcmp(workspace2, p, digest_size) > 0 && memcmp(p, name, digest_size) > 0)
+ if (memcmp(workspace2, p, digest_size) > 0 && memcmp(p, digest, digest_size) > 0)
return STAT_SECURE;
}
}
@@ -1563,13 +1563,13 @@ static int prove_non_existance_nsec3(struct dns_header *header, size_t plen, uns
{
/* Normal case, hash falls between NSEC3 name-hash and next domain name-hash,
wrap around case, name-hash falls between NSEC3 name-hash and end */
- if (memcmp(p, name, digest_size) > 0 || memcmp(workspace2, p, digest_size) > 0)
+ if (memcmp(p, digest, digest_size) > 0 || memcmp(workspace2, p, digest_size) > 0)
return STAT_SECURE;
}
else
{
/* wrap around case, name falls between start and next domain name */
- if (memcmp(workspace2, p, digest_size) > 0 && memcmp(p, name, digest_size) > 0)
+ if (memcmp(workspace2, p, digest_size) > 0 && memcmp(p, digest, digest_size) > 0)
return STAT_SECURE;
}
}