diff options
author | Lennart Poettering <lennart@poettering.net> | 2016-01-05 20:26:35 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-01-05 20:27:18 +0100 |
commit | 3eb6aa009dd0b64dc2b326acaa38821462b8c6bf (patch) | |
tree | 47dff77db85ee679d2ebebc1ff2a1807f6bfcb88 | |
parent | d1d1d4b807bc0fdffb64077fe724588ca3af8376 (diff) |
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.
-rw-r--r-- | src/resolve/resolved-dns-transaction.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resolve/resolved-dns-transaction.c b/src/resolve/resolved-dns-transaction.c index 44267c6b2d..7cf299bac8 100644 --- a/src/resolve/resolved-dns-transaction.c +++ b/src/resolve/resolved-dns-transaction.c @@ -1284,13 +1284,13 @@ static int dns_transaction_find_cyclic(DnsTransaction *t, DnsTransaction *aux) { if (t == aux) return 1; - SET_FOREACH(n, aux->notify_transactions, i) { + SET_FOREACH(n, aux->dnssec_transactions, i) { r = dns_transaction_find_cyclic(t, n); if (r != 0) return r; } - return r; + return 0; } static int dns_transaction_add_dnssec_transaction(DnsTransaction *t, DnsResourceKey *key, DnsTransaction **ret) { |