mirror of
https://github.com/espressif/openthread.git
synced 2026-08-05 10:27:49 +00:00
[border-agent] fix appending extended UDP Encapsulation TLV (#4104)
This commit is contained in:
@@ -424,7 +424,7 @@ bool BorderAgent::HandleUdpReceive(const Message &aMessage, const Ip6::MessageIn
|
||||
tlv.SetSourcePort(aMessageInfo.GetPeerPort());
|
||||
tlv.SetDestinationPort(aMessageInfo.GetSockPort());
|
||||
tlv.SetUdpLength(udpLength);
|
||||
SuccessOrExit(error = message->AppendTlv(tlv));
|
||||
SuccessOrExit(error = message->Append(&tlv, sizeof(tlv)));
|
||||
|
||||
offset = message->GetLength();
|
||||
SuccessOrExit(error = message->SetLength(offset + udpLength));
|
||||
|
||||
Reference in New Issue
Block a user