Skip to content

Commit 6da5ca9

Browse files
msekletarbluca
authored andcommitted
resolved: actually check authenticated flag of SOA transaction
Fixes #25676 (cherry picked from commit 3b4cc14)
1 parent a1597f9 commit 6da5ca9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/resolve/resolved-dns-transaction.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2808,7 +2808,7 @@ static int dns_transaction_requires_rrsig(DnsTransaction *t, DnsResourceRecord *
28082808
if (r == 0)
28092809
continue;
28102810

2811-
return FLAGS_SET(t->answer_query_flags, SD_RESOLVED_AUTHENTICATED);
2811+
return FLAGS_SET(dt->answer_query_flags, SD_RESOLVED_AUTHENTICATED);
28122812
}
28132813

28142814
return true;
@@ -2835,7 +2835,7 @@ static int dns_transaction_requires_rrsig(DnsTransaction *t, DnsResourceRecord *
28352835
/* We found the transaction that was supposed to find the SOA RR for us. It was
28362836
* successful, but found no RR for us. This means we are not at a zone cut. In this
28372837
* case, we require authentication if the SOA lookup was authenticated too. */
2838-
return FLAGS_SET(t->answer_query_flags, SD_RESOLVED_AUTHENTICATED);
2838+
return FLAGS_SET(dt->answer_query_flags, SD_RESOLVED_AUTHENTICATED);
28392839
}
28402840

28412841
return true;

0 commit comments

Comments
 (0)