Utils/Logger: BUGFIX: add SENF_LOG_TPL variants which work with templatized log param...
[senf.git] / Packets / DefaultBundle / IpV4Packet.cc
index 8c55752..ec35159 100644 (file)
@@ -52,6 +52,7 @@ namespace {
 prefix_ boost::uint16_t senf::Parse_IpV4::calcChecksum()
     const
 {
+    validate(bytes(*this));
     IpChecksum summer;
     summer.feed( i(),                   i()+checksum_offset );
     // Not needed since the number of 0-bytes is even