[posix] fix mld process invalid arguments (#4764)

This commit is contained in:
Jiacheng Guo
2020-03-31 07:59:54 -07:00
committed by GitHub
parent 77ea86302e
commit 4597d5e03f
+1 -1
View File
@@ -464,7 +464,7 @@ static void processMLDEvent(otInstance *aInstance)
uint8_t buffer[kMaxMLDEvent];
ssize_t bufferLen = -1;
struct sockaddr_in6 srcAddr;
socklen_t addrLen;
socklen_t addrLen = sizeof(srcAddr);
bool fromSelf = false;
MLDv2Header * hdr = reinterpret_cast<MLDv2Header *>(buffer);
size_t offset;