diff --git a/Net/include/Poco/Net/UDPSocketReader.h b/Net/include/Poco/Net/UDPSocketReader.h index b1105cfbd..e177e3efb 100644 --- a/Net/include/Poco/Net/UDPSocketReader.h +++ b/Net/include/Poco/Net/UDPSocketReader.h @@ -113,9 +113,9 @@ public: if (p) { Poco::UInt16 off = handler().payloadOffset(); - auto* pAL = reinterpret_cast(p + handler().addressLengthOffset()); + pAL = reinterpret_cast(p + handler().addressLengthOffset()); *pAL = SocketAddress::MAX_ADDRESS_LENGTH; - struct sockaddr* pSA = reinterpret_cast(p + handler().addressOffset()); + pSA = reinterpret_cast(p + handler().addressOffset()); RT ret = sock.receiveFrom(p + off, S - off - 1, &pSA, &pAL); if (ret < 0) {