]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3705] Compilation fix in pkt6_unittest.cc
authorTomek Mrugalski <tomasz@isc.org>
Thu, 5 Mar 2015 10:08:05 +0000 (11:08 +0100)
committerTomek Mrugalski <tomasz@isc.org>
Thu, 5 Mar 2015 10:08:05 +0000 (11:08 +0100)
src/lib/dhcp/tests/pkt6_unittest.cc

index 807d3718e5e110d7c5cde1937c48c838c106386f..4e992b19620154146a8aedee8d96bf1b97468fd4 100755 (executable)
@@ -1308,13 +1308,8 @@ TEST_F(Pkt6Test, rsoo) {
 
     ASSERT_EQ(2, msg->relay_info_.size());
 
-    OptionPtr opt;
-
-    Pkt6::RelayInfo& relay1 = msg->relay_info_[0];
-    Pkt6::RelayInfo& relay2 = msg->relay_info_[1];
-
     // There should be an RSOO option in the outermost relay
-    opt = msg->getRelayOption(D6O_RSOO, 1);
+    OptionPtr opt = msg->getRelayOption(D6O_RSOO, 1);
     ASSERT_TRUE(opt);
 
     EXPECT_EQ(D6O_RSOO, opt->getType());