[coap] finish cached coap response before sending (#4175)

This commit is contained in:
Simon Lin
2019-09-17 01:37:07 -07:00
committed by Jonathan Hui
parent c0ef327664
commit ff66a71c6a
+1
View File
@@ -601,6 +601,7 @@ void CoapBase::ProcessReceivedRequest(Message &aMessage, const Ip6::MessageInfo
switch (mResponsesQueue.GetMatchedResponseCopy(aMessage, aMessageInfo, &cachedResponse))
{
case OT_ERROR_NONE:
cachedResponse->Finish();
error = Send(*cachedResponse, aMessageInfo);
// fall through
;