]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3899] Fixed option 1000 (v4 -> v6)
authorFrancis Dupont <fdupont@isc.org>
Sun, 14 Jun 2015 14:43:32 +0000 (16:43 +0200)
committerFrancis Dupont <fdupont@isc.org>
Sun, 14 Jun 2015 14:43:32 +0000 (16:43 +0200)
src/lib/dhcp/tests/option_custom_unittest.cc

index 0330dcb8834ecaf479c25d735b60b544cc257fdc..38471245b35970d5145ddcbaaf670dc297b743a4 100644 (file)
@@ -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
     );