mirror of https://github.com/ARMmbed/mbed-os.git
				
				
				
			Revert Initialize remove_from_list flag to true.
* Cause regression in cloud registrationpull/4455/head
							parent
							
								
									fe808e0db5
								
							
						
					
					
						commit
						d399395eab
					
				| 
						 | 
					@ -1,6 +1,6 @@
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
  "name": "mbed-coap",
 | 
					  "name": "mbed-coap",
 | 
				
			||||||
  "version": "4.0.5",
 | 
					  "version": "4.0.6",
 | 
				
			||||||
  "description": "COAP library",
 | 
					  "description": "COAP library",
 | 
				
			||||||
  "keywords": [
 | 
					  "keywords": [
 | 
				
			||||||
    "coap",
 | 
					    "coap",
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -685,12 +685,14 @@ sn_coap_hdr_s *sn_coap_protocol_parse(struct coap_s *handle, sn_nsdl_addr_s *src
 | 
				
			||||||
        /* Remove from the list if not an notification message.
 | 
					        /* Remove from the list if not an notification message.
 | 
				
			||||||
         * Initial notification message is needed for sending rest of the blocks (GET request).
 | 
					         * Initial notification message is needed for sending rest of the blocks (GET request).
 | 
				
			||||||
        */
 | 
					        */
 | 
				
			||||||
        bool remove_from_the_list = true;
 | 
					        bool remove_from_the_list = false;
 | 
				
			||||||
        if (stored_blockwise_msg_temp_ptr) {
 | 
					        if (stored_blockwise_msg_temp_ptr) {
 | 
				
			||||||
            if (stored_blockwise_msg_temp_ptr->coap_msg_ptr &&
 | 
					            if (stored_blockwise_msg_temp_ptr->coap_msg_ptr &&
 | 
				
			||||||
                stored_blockwise_msg_temp_ptr->coap_msg_ptr->options_list_ptr &&
 | 
					                stored_blockwise_msg_temp_ptr->coap_msg_ptr->options_list_ptr &&
 | 
				
			||||||
                stored_blockwise_msg_temp_ptr->coap_msg_ptr->options_list_ptr->observe != COAP_OBSERVE_NONE) {
 | 
					                stored_blockwise_msg_temp_ptr->coap_msg_ptr->options_list_ptr->observe != COAP_OBSERVE_NONE) {
 | 
				
			||||||
                remove_from_the_list = false;
 | 
					                remove_from_the_list = false;
 | 
				
			||||||
 | 
					            } else {
 | 
				
			||||||
 | 
					                remove_from_the_list = true;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        if (remove_from_the_list) {
 | 
					        if (remove_from_the_list) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue