Skip to content

Commit f58fc88

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

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
@@ -2805,7 +2805,7 @@ static int dns_transaction_requires_rrsig(DnsTransaction *t, DnsResourceRecord *
28052805
if (r == 0)
28062806
continue;
28072807

2808-
return FLAGS_SET(t->answer_query_flags, SD_RESOLVED_AUTHENTICATED);
2808+
return FLAGS_SET(dt->answer_query_flags, SD_RESOLVED_AUTHENTICATED);
28092809
}
28102810

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

28382838
return true;

0 commit comments

Comments
 (0)