diff options
author | Tom Gundersen <teg@jklm.no> | 2015-12-15 12:25:22 +0000 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2015-12-15 12:25:22 +0000 |
commit | ab501843d6a934daa59ea00d465b763d964e68b8 (patch) | |
tree | 5e38916dd619af06e6e3d8e6f8e0ff404a59eb20 /src/resolve/resolved-dns-query.c | |
parent | 52d3240b15a3cd1128488cf08e1d6efa89f965a6 (diff) | |
parent | 73b8d8e92894c09669c6634a1a936ba604ebc26a (diff) |
Merge pull request #2168 from poettering/dnssec5
Fifth batch of DNSSEC support patches
Diffstat (limited to 'src/resolve/resolved-dns-query.c')
-rw-r--r-- | src/resolve/resolved-dns-query.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/resolve/resolved-dns-query.c b/src/resolve/resolved-dns-query.c index a6565f2ba2..405882a6ea 100644 --- a/src/resolve/resolved-dns-query.c +++ b/src/resolve/resolved-dns-query.c @@ -185,6 +185,14 @@ static DnsTransactionState dns_query_candidate_state(DnsQueryCandidate *c) { switch (t->state) { + case DNS_TRANSACTION_NULL: + /* If there's a NULL transaction pending, then + * this means not all transactions where + * started yet, and we were called from within + * the stackframe that is supposed to start + * remaining transactions. In this case, + * simply claim the candidate is pending. */ + case DNS_TRANSACTION_PENDING: case DNS_TRANSACTION_VALIDATING: /* If there's one transaction currently in @@ -197,9 +205,6 @@ static DnsTransactionState dns_query_candidate_state(DnsQueryCandidate *c) { state = t->state; break; - case DNS_TRANSACTION_NULL: - assert_not_reached("Transaction not started?"); - default: if (state != DNS_TRANSACTION_SUCCESS) state = t->state; |