must zero osiSockAddr prior to use!
RTEMS depends on this or eg. bind() will fail because comparison with list of interface addresses is done with memcmp()!
This commit is contained in:
1 parent
bc0892a1ad
commit
0161799c93
9 files changed
+19
No files matched your search
@@ -2564,6 +2564,7 @@ public:
|
||||
int32 searchSequenceId = payloadBuffer->getInt();
|
||||
|
||||
osiSockAddr serverAddress;
|
||||
memset(&serverAddress, 0, sizeof(serverAddress));
|
||||
serverAddress.ia.sin_family = AF_INET;
|
||||
|
||||
// 128-bit IPv6 address
|
||||
@@ -2627,6 +2628,7 @@ public:
|
||||
payloadBuffer->getShort();
|
||||
|
||||
osiSockAddr responseAddress;
|
||||
memset(&responseAddress, 0, sizeof(responseAddress));
|
||||
responseAddress.ia.sin_family = AF_INET;
|
||||
|
||||
// 128-bit IPv6 address
|
||||
@@ -2715,6 +2717,7 @@ public:
|
||||
int16 changeCount = payloadBuffer->getShort();
|
||||
|
||||
osiSockAddr serverAddress;
|
||||
memset(&serverAddress, 0, sizeof(serverAddress));
|
||||
serverAddress.ia.sin_family = AF_INET;
|
||||
|
||||
// 128-bit IPv6 address
|
||||
|
||||
Reference in new issue
Block a user