Skip to content

Commit d399395

Browse files
author
Antti Yli-Tokola
committed
Revert Initialize remove_from_list flag to true.
* Cause regression in cloud registration
1 parent fe808e0 commit d399395

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

features/FEATURE_COMMON_PAL/mbed-coap/module.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mbed-coap",
3-
"version": "4.0.5",
3+
"version": "4.0.6",
44
"description": "COAP library",
55
"keywords": [
66
"coap",

features/FEATURE_COMMON_PAL/mbed-coap/source/sn_coap_protocol.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,12 +685,14 @@ sn_coap_hdr_s *sn_coap_protocol_parse(struct coap_s *handle, sn_nsdl_addr_s *src
685685
/* Remove from the list if not an notification message.
686686
* Initial notification message is needed for sending rest of the blocks (GET request).
687687
*/
688-
bool remove_from_the_list = true;
688+
bool remove_from_the_list = false;
689689
if (stored_blockwise_msg_temp_ptr) {
690690
if (stored_blockwise_msg_temp_ptr->coap_msg_ptr &&
691691
stored_blockwise_msg_temp_ptr->coap_msg_ptr->options_list_ptr &&
692692
stored_blockwise_msg_temp_ptr->coap_msg_ptr->options_list_ptr->observe != COAP_OBSERVE_NONE) {
693693
remove_from_the_list = false;
694+
} else {
695+
remove_from_the_list = true;
694696
}
695697
}
696698
if (remove_from_the_list) {

0 commit comments

Comments
 (0)