diff options
author | Lukas Nykryn <lnykryn@redhat.com> | 2014-08-20 14:34:23 +0200 |
---|---|---|
committer | Lukas Nykryn <lnykryn@redhat.com> | 2014-08-20 14:34:26 +0200 |
commit | 03664a62914782dbd8f069bbcf8a0c8ca1df7010 (patch) | |
tree | 5d79e88e17fa3aefca4bc0cfca8b815743fcc37a | |
parent | 5dd6d0f8ff1681fff9369e0aa2532979954dbfde (diff) |
resolved-dns-rr: fix typo
a->rrsig.type_covered != a->rrsig.type_covered" is always false
regardless of the values of its operands because those operands are identical.
-rw-r--r-- | src/resolve/resolved-dns-rr.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/resolve/resolved-dns-rr.c b/src/resolve/resolved-dns-rr.c index c792deda47..c5f7cb931e 100644 --- a/src/resolve/resolved-dns-rr.c +++ b/src/resolve/resolved-dns-rr.c @@ -425,13 +425,13 @@ int dns_resource_record_equal(const DnsResourceRecord *a, const DnsResourceRecor case DNS_TYPE_RRSIG: /* do the fast comparisons first */ - if (a->rrsig.type_covered != a->rrsig.type_covered || - a->rrsig.algorithm != a->rrsig.algorithm || - a->rrsig.labels != a->rrsig.labels || - a->rrsig.original_ttl != a->rrsig.original_ttl || - a->rrsig.expiration != a->rrsig.expiration || - a->rrsig.inception != a->rrsig.inception || - a->rrsig.key_tag != a->rrsig.key_tag || + if (a->rrsig.type_covered != b->rrsig.type_covered || + a->rrsig.algorithm != b->rrsig.algorithm || + a->rrsig.labels != b->rrsig.labels || + a->rrsig.original_ttl != b->rrsig.original_ttl || + a->rrsig.expiration != b->rrsig.expiration || + a->rrsig.inception != b->rrsig.inception || + a->rrsig.key_tag != b->rrsig.key_tag || a->rrsig.signature_size != b->rrsig.signature_size || memcmp(a->rrsig.signature, b->rrsig.signature, a->rrsig.signature_size) != 0) return false; |