Skip to content

Commit 0292727

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)
1 parent 026d51d commit 0292727

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
@@ -2788,7 +2788,7 @@ static int dns_transaction_requires_rrsig(DnsTransaction *t, DnsResourceRecord *
27882788
if (r == 0)
27892789
continue;
27902790

2791-
return FLAGS_SET(t->answer_query_flags, SD_RESOLVED_AUTHENTICATED);
2791+
return FLAGS_SET(dt->answer_query_flags, SD_RESOLVED_AUTHENTICATED);
27922792
}
27932793

27942794
return true;
@@ -2815,7 +2815,7 @@ static int dns_transaction_requires_rrsig(DnsTransaction *t, DnsResourceRecord *
28152815
/* We found the transaction that was supposed to find the SOA RR for us. It was
28162816
* successful, but found no RR for us. This means we are not at a zone cut. In this
28172817
* case, we require authentication if the SOA lookup was authenticated too. */
2818-
return FLAGS_SET(t->answer_query_flags, SD_RESOLVED_AUTHENTICATED);
2818+
return FLAGS_SET(dt->answer_query_flags, SD_RESOLVED_AUTHENTICATED);
28192819
}
28202820

28212821
return true;

0 commit comments

Comments
 (0)