Browse Source

[3899] Fixed option 1000 (v4 -> v6)

Francis Dupont 10 years ago
parent
commit
8e4e4a8535
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib/dhcp/tests/option_custom_unittest.cc

+ 1 - 1
src/lib/dhcp/tests/option_custom_unittest.cc

@@ -477,7 +477,7 @@ TEST_F(OptionCustomTest, ipv6AddressData) {
     // Check that option is not created if the provided buffer is
     // too short (use 15 bytes instead of 16).
     EXPECT_THROW(
-        option.reset(new OptionCustom(opt_def, Option::V4, buf.begin(),
+        option.reset(new OptionCustom(opt_def, Option::V6, buf.begin(),
                                       buf.begin() + 15)),
         isc::OutOfRange
     );