coap/engine: fix code block
@@ -219,8 +219,9 @@ coap_receive(oc_message_t *msg)
#endif /* OC_TCP */
{
transaction = coap_get_transaction_by_mid(message->mid);
- if (transaction)
+ if (transaction) {
coap_clear_transaction(transaction);
+ }
transaction = NULL;
}
@@ -813,6 +814,7 @@ send_message:
}
}
#endif /* OC_CLIENT && OC_BLOCK_WISE */
+ }
transaction->message->length =
coap_serialize_message(response, transaction->message->data);
if (transaction->message->length > 0) {
@@ -821,7 +823,6 @@ send_message:
coap_clear_transaction(transaction);
}
}
- }
#ifdef OC_SECURITY
if (coap_status_code == CLOSE_ALL_TLS_SESSIONS) {
