Skip to content

Commit

Permalink
Fix invalid memory read error (ARMmbed#90)
Browse files Browse the repository at this point in the history
Fixed invalid memory read error. Transaction can be freed in tx-callback, it
should not be used after that.
  • Loading branch information
Tero Heinonen authored Jan 15, 2018
1 parent 8689fca commit bca55ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/coap_message_handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ uint16_t coap_message_handler_request_send(coap_msg_handler_t *handle, int8_t se
//No response expected
return 0;
}
return transaction_ptr->msg_id;
return request.msg_id;
}

static int8_t coap_message_handler_resp_build_and_send(coap_msg_handler_t *handle, sn_coap_hdr_s *coap_msg_ptr, coap_transaction_t *transaction_ptr)
Expand Down

0 comments on commit bca55ce

Please sign in to comment.