mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 17:00:13 +02:00
Merge pull request #3017 from birarda/master
fix offset to attribute in STUN packet
This commit is contained in:
commit
7cb8f744c2
1 changed files with 1 additions and 1 deletions
|
@ -281,7 +281,7 @@ void NodeList::processSTUNResponse(const QByteArray& packet) {
|
||||||
int byteIndex = attributeStartIndex + NUM_BYTES_STUN_ATTR_TYPE_AND_LENGTH + NUM_BYTES_FAMILY_ALIGN;
|
int byteIndex = attributeStartIndex + NUM_BYTES_STUN_ATTR_TYPE_AND_LENGTH + NUM_BYTES_FAMILY_ALIGN;
|
||||||
|
|
||||||
uint8_t addressFamily = 0;
|
uint8_t addressFamily = 0;
|
||||||
memcpy(&addressFamily, packet.data(), sizeof(addressFamily));
|
memcpy(&addressFamily, packet.data() + byteIndex, sizeof(addressFamily));
|
||||||
|
|
||||||
byteIndex += sizeof(addressFamily);
|
byteIndex += sizeof(addressFamily);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue