BIND 10 master, updated. 476e1924b7fe11c3a46408df4aede27e84f2c225 [master] Fixed libdhcp++ unit test to use correct buffer length for compare

BIND 10 source code commits bind10-changes at lists.isc.org
Fri Oct 25 07:47:32 UTC 2013


The branch, master has been updated
       via  476e1924b7fe11c3a46408df4aede27e84f2c225 (commit)
      from  1d28cc4d6ad1cc69ba00cc4e1d6822092a259e63 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 476e1924b7fe11c3a46408df4aede27e84f2c225
Author: Marcin Siodelski <marcin at isc.org>
Date:   Fri Oct 25 09:47:23 2013 +0200

    [master] Fixed libdhcp++ unit test to use correct buffer length for compare
    
    Okayed on jabber.

-----------------------------------------------------------------------

Summary of changes:
 src/lib/dhcp/tests/libdhcp++_unittest.cc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-----------------------------------------------------------------------
diff --git a/src/lib/dhcp/tests/libdhcp++_unittest.cc b/src/lib/dhcp/tests/libdhcp++_unittest.cc
index 614caff..8fa17d2 100644
--- a/src/lib/dhcp/tests/libdhcp++_unittest.cc
+++ b/src/lib/dhcp/tests/libdhcp++_unittest.cc
@@ -616,7 +616,7 @@ TEST_F(LibDhcpTest, unpackOptions4) {
     ASSERT_TRUE(rai_option);
     EXPECT_EQ(RAI_OPTION_VSI, rai_option->getType());
     ASSERT_EQ(11, rai_option->len());
-    EXPECT_EQ(0, memcmp(&rai_option->getData()[0], v4_opts + 43, 11));
+    EXPECT_EQ(0, memcmp(&rai_option->getData()[0], v4_opts + 43, 9));
 
     // Make sure, that option other than those above is not present.
     EXPECT_FALSE(rai->getOption(10));



More information about the bind10-changes mailing list