]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2831] Fix the segment that is used from the child
authorMukund Sivaraman <muks@isc.org>
Fri, 12 Apr 2013 14:27:53 +0000 (19:57 +0530)
committerMukund Sivaraman <muks@isc.org>
Fri, 12 Apr 2013 14:27:53 +0000 (19:57 +0530)
src/lib/util/tests/memory_segment_mapped_unittest.cc

index a94c85377ef6b41e1dfe6122999e57106f06e4ca..8311a6276231903d957b1ac8e9cb6ede66754c7c 100644 (file)
@@ -393,7 +393,7 @@ TEST_F(MemorySegmentMappedTest, multiProcess) {
     if (child_pid == 0) {       // child
         close(pipes[0]);
         MemorySegmentMapped sgmt(mapped_file);
-        void* ptr_child = segment_->getNamedAddress("test address");
+        void* ptr_child = sgmt.getNamedAddress("test address");
         EXPECT_TRUE(ptr_child);
         if (ptr_child) {
             const uint32_t val = *static_cast<const uint32_t*>(ptr_child);