Skip to content

Commit 3c259d0

Browse files
committed
restyled
1 parent 57f5474 commit 3c259d0

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

examples/all-clusters-app/linux/fuzzing-main.cpp

+3-4
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t * aData, size_t aSize)
7474
// But maybe we should try to separately extract a PeerAddress and data from
7575
// the incoming data?
7676

77-
//dumping payload with random transport types
77+
// dumping payload with random transport types
7878
std::srand(std::time(0));
7979
Transport::Type randomTransportType = static_cast<Transport::Type>(std::rand() % 5);
8080
Transport::PeerAddress peerAddr(randomTransportType);
@@ -90,16 +90,15 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t * aData, size_t aSize)
9090
// Ignoring the return value from OnMessageReceived, because we might be
9191
// passing it all sorts of garbage that will cause it to fail.
9292

93-
//for TCP we need to have msgContext
94-
if(randomTransportType == Transport::Type::kTcp)
93+
// for TCP we need to have MessageTransportContext
94+
if (randomTransportType == Transport::Type::kTcp)
9595
{
9696
Transport::MessageTransportContext msgContext;
9797
Server::GetInstance().GetSecureSessionManager().OnMessageReceived(peerAddr, std::move(buf), &msgContext);
9898
}
9999
else
100100
{
101101
Server::GetInstance().GetSecureSessionManager().OnMessageReceived(peerAddr, std::move(buf));
102-
103102
}
104103
// Now process pending events until our sentinel is reached.
105104
PlatformMgr().ScheduleWork([](intptr_t) { PlatformMgr().StopEventLoopTask(); });

0 commit comments

Comments
 (0)