update test/fuzztest/ipcsocket_fuzzer/ipcsocket_fuzzer.cpp.

Signed-off-by: 李少雄 <lishaoxiong10@huawei.com>
This commit is contained in:
李少雄 2024-11-20 07:08:23 +00:00 committed by Gitee
parent acfe13f3b6
commit 6833c81778
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -81,8 +81,8 @@ bool SocketConnectionFuzzTest(const uint8_t* data, size_t size)
};
NetPacket packet(MessageId::COORDINATION_ADD_LISTENER);
struct epoll_event ev{};
std::shared_ptr<TunnelClient> tunnel = std::make_shared<TunnelClient>();
std::unique_ptr<SocketClient> client = std::make_unique<SocketClient>(tunnel);
auto tunnel = std::make_shared<TunnelClient>();
auto client = std::make_unique<SocketClient>(tunnel);
client->Connect();
client->Socket();
MessageId msgId { MessageId::INVALID };