Skip to content

Commit bb78da7

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)
1 parent 11e885f commit bb78da7

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
@@ -2817,7 +2817,7 @@ static int dns_transaction_requires_rrsig(DnsTransaction *t, DnsResourceRecord *
28172817
if (r == 0)
28182818
continue;
28192819

2820-
return FLAGS_SET(t->answer_query_flags, SD_RESOLVED_AUTHENTICATED);
2820+
return FLAGS_SET(dt->answer_query_flags, SD_RESOLVED_AUTHENTICATED);
28212821
}
28222822

28232823
return true;
@@ -2844,7 +2844,7 @@ static int dns_transaction_requires_rrsig(DnsTransaction *t, DnsResourceRecord *
28442844
/* We found the transaction that was supposed to find the SOA RR for us. It was
28452845
* successful, but found no RR for us. This means we are not at a zone cut. In this
28462846
* case, we require authentication if the SOA lookup was authenticated too. */
2847-
return FLAGS_SET(t->answer_query_flags, SD_RESOLVED_AUTHENTICATED);
2847+
return FLAGS_SET(dt->answer_query_flags, SD_RESOLVED_AUTHENTICATED);
28482848
}
28492849

28502850
return true;

0 commit comments

Comments
 (0)