From a2d7c36a03e389360d64cdfedaf4e0e0ceedb357 Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Tue, 26 May 2015 12:13:49 +0200 Subject: [PATCH] Align SRVRecordContent to 8-byte boundries --- pdns/dnsrecords.cc | 2 +- pdns/dnsrecords.hh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pdns/dnsrecords.cc b/pdns/dnsrecords.cc index 8284a1900e..3df4c6a778 100644 --- a/pdns/dnsrecords.cc +++ b/pdns/dnsrecords.cc @@ -226,7 +226,7 @@ boilerplate_conv(NAPTR, QType::NAPTR, SRVRecordContent::SRVRecordContent(uint16_t preference, uint16_t weight, uint16_t port, const string& target) -: DNSRecordContent(QType::SRV), d_preference(preference), d_weight(weight), d_port(port), d_target(target) +: DNSRecordContent(QType::SRV), d_weight(weight), d_port(port), d_target(target), d_preference(preference) {} boilerplate_conv(SRV, QType::SRV, diff --git a/pdns/dnsrecords.hh b/pdns/dnsrecords.hh index 7c8d92123a..4c184c156a 100644 --- a/pdns/dnsrecords.hh +++ b/pdns/dnsrecords.hh @@ -131,8 +131,9 @@ public: includeboilerplate(SRV) - uint16_t d_preference, d_weight, d_port; + uint16_t d_weight, d_port; string d_target; + uint16_t d_preference; }; class TSIGRecordContent : public DNSRecordContent -- 2.47.2