update
This commit is contained in:
parent
287b6ed3e4
commit
e75ee99285
3
das-dn/third_party/AdsLib/Sockets.cpp
vendored
3
das-dn/third_party/AdsLib/Sockets.cpp
vendored
@ -218,6 +218,9 @@ size_t Socket::write(const Frame& frame) const
|
||||
LOG_ERROR("frame length: " << frame.size() << " exceeds maximum length for sockets");
|
||||
return 0;
|
||||
}
|
||||
if (m_Socket == INVALID_SOCKET) return 0;
|
||||
if (m_DestAddr == 0) return 0;
|
||||
if (m_DestAddrLen <= 0) return 0;
|
||||
|
||||
const int bufferLength = static_cast<int>(frame.size());
|
||||
const char* const buffer = reinterpret_cast<const char*>(frame.data());
|
||||
|
Loading…
Reference in New Issue
Block a user