Append KEK in case JoinFin.rsp is appended to other DTLS messages. (#1613)

This commit is contained in:
Hubert Miś
2017-04-19 08:39:24 -07:00
committed by Jonathan Hui
parent bd6b55376a
commit 02653d3551
+6
View File
@@ -206,6 +206,12 @@ ThreadError SecureServer::HandleDtlsSend(const uint8_t *aBuf, uint16_t aLength,
mTransmitMessage->SetLinkSecurityEnabled(false);
}
// Set message sub type in case Joiner Finalize Response is appended to the message.
if (aMessageSubType != Message::kSubTypeNone)
{
mTransmitMessage->SetSubType(aMessageSubType);
}
VerifyOrExit(mTransmitMessage->Append(aBuf, aLength) == kThreadError_None, error = kThreadError_NoBufs);
mTransmitTask.Post();