diff options
author | Vasil Dimov <vd@FreeBSD.org> | 2021-04-29 17:35:43 +0200 |
---|---|---|
committer | Vasil Dimov <vd@FreeBSD.org> | 2022-06-20 16:38:31 +0200 |
commit | e8ff3f0c52e7512a580bc907dc72e5bb141b4217 (patch) | |
tree | 0a2b42013e2cf72f01190f9e31d7beaa0e434148 /src/test | |
parent | 175fb2670a2a24220afb3eea99b7b65b0aa89c76 (diff) |
net: remove CloseSocket()
Do the closing in `Sock::Reset()` and remove the standalone
`CloseSocket()`.
This reduces the exposure of low-level sockets (i.e. integer file
descriptors) outside of the `Sock` class.
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/fuzz/util.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/fuzz/util.cpp b/src/test/fuzz/util.cpp index 883698aff1..c65eef9c61 100644 --- a/src/test/fuzz/util.cpp +++ b/src/test/fuzz/util.cpp @@ -24,7 +24,7 @@ FuzzedSock::FuzzedSock(FuzzedDataProvider& fuzzed_data_provider) FuzzedSock::~FuzzedSock() { // Sock::~Sock() will be called after FuzzedSock::~FuzzedSock() and it will call - // Sock::Reset() (not FuzzedSock::Reset()!) which will call CloseSocket(m_socket). + // Sock::Reset() (not FuzzedSock::Reset()!) which will call close(m_socket). // Avoid closing an arbitrary file descriptor (m_socket is just a random very high number which // theoretically may concide with a real opened file descriptor). Reset(); |