diff options
author | Tom Gundersen <teg@jklm.no> | 2015-08-22 01:57:58 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2015-08-22 01:57:58 +0200 |
commit | 72aa2c2a2083362afda9f09805563848d54e31df (patch) | |
tree | 418b0e257bec66fc0816bd30800cc9d616206dea /src/resolve/resolved-dns-scope.c | |
parent | 28b967a87bfa83815ae97e80c02f637a5dd3f454 (diff) | |
parent | 26b1c471cdddedf1bb9aebf10f4c3073bdf7a29e (diff) |
Merge pull request #1010 from poettering/resolved-question-key
only maintain one question RR key per transaction and other fixes
Diffstat (limited to 'src/resolve/resolved-dns-scope.c')
-rw-r--r-- | src/resolve/resolved-dns-scope.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/resolve/resolved-dns-scope.c b/src/resolve/resolved-dns-scope.c index b1e5855a6f..57a2c7d6c1 100644 --- a/src/resolve/resolved-dns-scope.c +++ b/src/resolve/resolved-dns-scope.c @@ -617,11 +617,11 @@ void dns_scope_process_query(DnsScope *s, DnsStream *stream, DnsPacket *p) { } } -DnsTransaction *dns_scope_find_transaction(DnsScope *scope, DnsQuestion *question, bool cache_ok) { +DnsTransaction *dns_scope_find_transaction(DnsScope *scope, DnsResourceKey *key, bool cache_ok) { DnsTransaction *t; assert(scope); - assert(question); + assert(key); /* Try to find an ongoing transaction that is a equal or a * superset of the specified question */ @@ -636,7 +636,7 @@ DnsTransaction *dns_scope_find_transaction(DnsScope *scope, DnsQuestion *questio !t->received) continue; - if (dns_question_is_superset(t->question, question) > 0) + if (dns_resource_key_equal(t->key, key) > 0) return t; } |