mirror of
https://github.com/systemd/systemd.git
synced 2025-03-19 22:50:17 +03:00
resolved: don't dereference ->scope unless set
Coverity 1446388
This commit is contained in:
parent
3178014709
commit
013668db32
@ -121,10 +121,10 @@ DnsTransaction* dns_transaction_free(DnsTransaction *t) {
|
||||
}
|
||||
|
||||
LIST_REMOVE(transactions_by_scope, t->scope->transactions, t);
|
||||
}
|
||||
|
||||
if (t->id != 0)
|
||||
hashmap_remove(t->scope->manager->dns_transactions, UINT_TO_PTR(t->id));
|
||||
if (t->id != 0)
|
||||
hashmap_remove(t->scope->manager->dns_transactions, UINT_TO_PTR(t->id));
|
||||
}
|
||||
|
||||
while ((c = set_steal_first(t->notify_query_candidates)))
|
||||
set_remove(c->transactions, t);
|
||||
|
Loading…
x
Reference in New Issue
Block a user