resolved: fix DNSSEC transaction dependency recursion check
We followed the wrong connection. This only worked sometimes at all, because we also return the wrong error code.
This commit is contained in:
parent
d1d1d4b807
commit
3eb6aa009d
|
@ -1284,13 +1284,13 @@ static int dns_transaction_find_cyclic(DnsTransaction *t, DnsTransaction *aux) {
|
||||||
if (t == aux)
|
if (t == aux)
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
SET_FOREACH(n, aux->notify_transactions, i) {
|
SET_FOREACH(n, aux->dnssec_transactions, i) {
|
||||||
r = dns_transaction_find_cyclic(t, n);
|
r = dns_transaction_find_cyclic(t, n);
|
||||||
if (r != 0)
|
if (r != 0)
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
return r;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int dns_transaction_add_dnssec_transaction(DnsTransaction *t, DnsResourceKey *key, DnsTransaction **ret) {
|
static int dns_transaction_add_dnssec_transaction(DnsTransaction *t, DnsResourceKey *key, DnsTransaction **ret) {
|
||||||
|
|
Loading…
Reference in a new issue