]> git.proxmox.com Git - systemd.git/blobdiff - src/resolve/resolved-dns-transaction.c
Imported Upstream version 227
[systemd.git] / src / resolve / resolved-dns-transaction.c
index 8092bb514d614f60e7d1ffa59ba53a1860c322e0..b30473dd7e9686978b2a4987843601eed23d706c 100644 (file)
@@ -458,7 +458,7 @@ void dns_transaction_process_reply(DnsTransaction *t, DnsPacket *p) {
         }
 
         /* According to RFC 4795, section 2.9. only the RRs from the answer section shall be cached */
-        dns_cache_put(&t->scope->cache, p->question, DNS_PACKET_RCODE(p), p->answer, DNS_PACKET_ANCOUNT(p), 0, p->family, &p->sender);
+        dns_cache_put(&t->scope->cache, t->key, DNS_PACKET_RCODE(p), p->answer, DNS_PACKET_ANCOUNT(p), 0, p->family, &p->sender);
 
         if (DNS_PACKET_RCODE(p) == DNS_RCODE_SUCCESS)
                 dns_transaction_complete(t, DNS_TRANSACTION_SUCCESS);