Commit 3e0e179c authored by Kishen Maloor's avatar Kishen Maloor

coap/engine: fix code block

Signed-off-by: Kishen Maloor's avatarKishen Maloor <kishen.maloor@intel.com>
parent 1b0906a2
......@@ -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,13 +814,13 @@ send_message:
}
}
#endif /* OC_CLIENT && OC_BLOCK_WISE */
transaction->message->length =
coap_serialize_message(response, transaction->message->data);
if (transaction->message->length > 0) {
coap_send_transaction(transaction);
} else {
coap_clear_transaction(transaction);
}
}
transaction->message->length =
coap_serialize_message(response, transaction->message->data);
if (transaction->message->length > 0) {
coap_send_transaction(transaction);
} else {
coap_clear_transaction(transaction);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment