From: Pieter Lexis Date: Tue, 26 May 2015 10:13:49 +0000 (+0200) Subject: Align SRVRecordContent to 8-byte boundries X-Git-Tag: dnsdist-1.0.0-alpha1~248^2~77^2~4^2~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a2d7c36a03e389360d64cdfedaf4e0e0ceedb357;p=thirdparty%2Fpdns.git Align SRVRecordContent to 8-byte boundries --- 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