diff --git a/quic/server/test/QuicServerTest.cpp b/quic/server/test/QuicServerTest.cpp index cb737f488..e3668ab80 100644 --- a/quic/server/test/QuicServerTest.cpp +++ b/quic/server/test/QuicServerTest.cpp @@ -1917,9 +1917,9 @@ void QuicServerWorkerTakeoverTest::testPacketForwarding( EXPECT_EQ(protocotVersion, 0x0000001); uint16_t addrLen = (cursor.readBE()); struct sockaddr* sockaddr = nullptr; - std::pair addrData = cursor.peek(); - EXPECT_GE(addrData.second, addrLen); - sockaddr = (struct sockaddr*)addrData.first; + auto addrData = cursor.peek(); + EXPECT_GE(addrData.size(), addrLen); + sockaddr = (struct sockaddr*)addrData.data(); cursor.skip(addrLen); folly::SocketAddress actualClient;