Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
omoerbeek committed May 31, 2024
1 parent 7ff8ca0 commit 6a88fde
Show file tree
Hide file tree
Showing 3 changed files with 363 additions and 270 deletions.
2 changes: 0 additions & 2 deletions .not-formatted
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,6 @@
./pdns/pdnsutil.cc
./pdns/pkcs11signers.cc
./pdns/pkcs11signers.hh
./pdns/protozero.cc
./pdns/protozero.hh
./pdns/proxy-protocol.cc
./pdns/proxy-protocol.hh
./pdns/qtype.cc
Expand Down
14 changes: 7 additions & 7 deletions pdns/protozero.cc
Original file line number Diff line number Diff line change
Expand Up @@ -109,17 +109,17 @@ void pdns::ProtoZero::Message::addRRsFromPacket(const char* packet, const size_t
rrname = pr.getName();
rrtype = pr.get16BitInt();
rrclass = pr.get16BitInt();
(void) rrtype;
(void) rrclass;
(void)rrtype;
(void)rrclass;

/* consume remaining qd if any */
if (qdcount > 1) {
for(idx = 1; idx < qdcount; idx++) {
for (idx = 1; idx < qdcount; idx++) {
rrname = pr.getName();
rrtype = pr.get16BitInt();
rrclass = pr.get16BitInt();
(void) rrtype;
(void) rrclass;
(void)rrtype;
(void)rrclass;
}
}

Expand All @@ -132,8 +132,8 @@ void pdns::ProtoZero::Message::addRRsFromPacket(const char* packet, const size_t
pr.xfrBlob(blob);

addRR(rrname, ah.d_type, ah.d_class, ah.d_ttl, blob);

} else if (ah.d_type == QType::CNAME && includeCNAME) {
}
else if (ah.d_type == QType::CNAME && includeCNAME) {
protozero::pbf_writer pbf_rr{d_response, static_cast<protozero::pbf_tag_type>(pdns::ProtoZero::Message::ResponseField::rrs)};

encodeDNSName(pbf_rr, d_buffer, static_cast<protozero::pbf_tag_type>(pdns::ProtoZero::Message::RRField::name), rrname);
Expand Down
Loading

0 comments on commit 6a88fde

Please sign in to comment.