]> granicus.if.org Git - pdns/commitdiff
Align SRVRecordContent to 8-byte boundries
authorPieter Lexis <pieter.lexis@powerdns.com>
Tue, 26 May 2015 10:13:49 +0000 (12:13 +0200)
committerPieter Lexis <pieter.lexis@powerdns.com>
Fri, 19 Jun 2015 20:51:47 +0000 (22:51 +0200)
pdns/dnsrecords.cc
pdns/dnsrecords.hh

index 8284a1900e92dacc63b0df03da17d47915021011..3df4c6a7789dbd8c4f49475c10a5d966673df621 100644 (file)
@@ -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, 
index 7c8d92123a2ce2e544e683ecc22b980554c0d04a..4c184c156a956688ca7d7698f4452b2392708792 100644 (file)
@@ -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