mirror of
https://github.com/systemd/systemd.git
synced 2024-11-02 02:21:44 +03:00
resolved: use DNS_{QUESTION|ANSWER}_FOREACH macros at two more places
This commit is contained in:
parent
f2ed4c696a
commit
2a3900d7e4
@ -654,17 +654,17 @@ static int dns_scope_make_reply_packet(
|
||||
}
|
||||
|
||||
static void dns_scope_verify_conflicts(DnsScope *s, DnsPacket *p) {
|
||||
unsigned n;
|
||||
DnsResourceRecord *rr;
|
||||
DnsResourceKey *key;
|
||||
|
||||
assert(s);
|
||||
assert(p);
|
||||
|
||||
if (p->question)
|
||||
for (n = 0; n < p->question->n_keys; n++)
|
||||
dns_zone_verify_conflicts(&s->zone, p->question->keys[n]);
|
||||
if (p->answer)
|
||||
for (n = 0; n < p->answer->n_rrs; n++)
|
||||
dns_zone_verify_conflicts(&s->zone, p->answer->items[n].rr->key);
|
||||
DNS_QUESTION_FOREACH(key, p->question)
|
||||
dns_zone_verify_conflicts(&s->zone, key);
|
||||
|
||||
DNS_ANSWER_FOREACH(rr, p->answer)
|
||||
dns_zone_verify_conflicts(&s->zone, rr->key);
|
||||
}
|
||||
|
||||
void dns_scope_process_query(DnsScope *s, DnsStream *stream, DnsPacket *p) {
|
||||
|
Loading…
Reference in New Issue
Block a user