Skip to content

Commit

Permalink
fuzz: add CConnman::SocketHandler() to the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vasild committed Feb 4, 2024
1 parent 714bc21 commit 5e3c80d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/test/fuzz/connman.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,9 @@ FUZZ_TARGET(connman, .init = initialize_connman)
options.onion_binds.empty();

connman.InitBindsPublic(options);
},
[&] {
connman.SocketHandlerPublic();
});
}
(void)connman.GetAddedNodeInfo(fuzzed_data_provider.ConsumeBool());
Expand Down
5 changes: 5 additions & 0 deletions src/test/util/net.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ struct ConnmanTestMsg : public CConnman {
return InitBinds(options);
}

void SocketHandlerPublic()
{
SocketHandler();
}

void Handshake(CNode& node,
bool successfully_connected,
ServiceFlags remote_services,
Expand Down

0 comments on commit 5e3c80d

Please sign in to comment.