mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-12 10:13:51 +01:00
fix(UDPSocketReader): resolve security warnings reported by CodeQL
This commit is contained in:
parent
173997964c
commit
32b2f720b3
@ -113,9 +113,9 @@ public:
|
||||
if (p)
|
||||
{
|
||||
Poco::UInt16 off = handler().payloadOffset();
|
||||
auto* pAL = reinterpret_cast<poco_socklen_t*>(p + handler().addressLengthOffset());
|
||||
pAL = reinterpret_cast<poco_socklen_t*>(p + handler().addressLengthOffset());
|
||||
*pAL = SocketAddress::MAX_ADDRESS_LENGTH;
|
||||
struct sockaddr* pSA = reinterpret_cast<struct sockaddr*>(p + handler().addressOffset());
|
||||
pSA = reinterpret_cast<struct sockaddr*>(p + handler().addressOffset());
|
||||
RT ret = sock.receiveFrom(p + off, S - off - 1, &pSA, &pAL);
|
||||
if (ret < 0)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user