summaryrefslogtreecommitdiffstats
path: root/src/bin/perfdhcp/tests/perf_pkt6_unittest.cc
diff options
context:
space:
mode:
authorFrancis Dupont <fdupont@isc.org>2017-01-09 23:19:08 +0100
committerFrancis Dupont <fdupont@isc.org>2017-01-09 23:19:08 +0100
commit837ed7397ab8621f35a87b4e22a97b9f2812a055 (patch)
tree383a8b06dce906de034c4e6776f720d32ad99689 /src/bin/perfdhcp/tests/perf_pkt6_unittest.cc
parent[master] Merge branch 'trac5044' (DUID configuration to SimpleParser) (diff)
downloadkea-837ed7397ab8621f35a87b4e22a97b9f2812a055.tar.xz
kea-837ed7397ab8621f35a87b4e22a97b9f2812a055.zip
[master] Tentative fix for Clang static analyzer
Diffstat (limited to 'src/bin/perfdhcp/tests/perf_pkt6_unittest.cc')
-rw-r--r--src/bin/perfdhcp/tests/perf_pkt6_unittest.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bin/perfdhcp/tests/perf_pkt6_unittest.cc b/src/bin/perfdhcp/tests/perf_pkt6_unittest.cc
index 54bddc3d9d..15d073f6fc 100644
--- a/src/bin/perfdhcp/tests/perf_pkt6_unittest.cc
+++ b/src/bin/perfdhcp/tests/perf_pkt6_unittest.cc
@@ -275,6 +275,9 @@ TEST_F(PerfPkt6Test, PackTransactionId) {
const uint8_t *out_buf_data = static_cast<const uint8_t*>
(out_buf.getData());
+ // Try to make clang static analyzer happy.
+ ASSERT_LE(offset_transid[0], out_buf.getLength());
+
// Validate transaction id.
EXPECT_EQ(0, memcmp(out_buf_data + offset_transid[0], ref_data, 3));