summaryrefslogtreecommitdiffstats
path: root/protozero.cc
diff options
context:
space:
mode:
Diffstat (limited to 'protozero.cc')
-rw-r--r--protozero.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/protozero.cc b/protozero.cc
index 6f6fcf3..e8c1dce 100644
--- a/protozero.cc
+++ b/protozero.cc
@@ -85,7 +85,7 @@ void pdns::ProtoZero::Message::addRRsFromPacket(const char* packet, const size_t
return;
}
- const struct dnsheader* dh = reinterpret_cast<const struct dnsheader*>(packet);
+ const dnsheader_aligned dh(packet);
if (ntohs(dh->ancount) == 0) {
return;