Skip to content
This repository was archived by the owner on Apr 24, 2019. It is now read-only.

Commit 6925e89

Browse files
authored
Merge pull request #275 from ARMmbed/IOTCLT-961
Fix for IOTCLT-961
2 parents 5fb49d2 + 1f845a2 commit 6925e89

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

source/m2minterfaceimpl.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,7 @@ void M2MInterfaceImpl::state_bootstrap_address_resolved( EventData *data)
603603
}
604604
address.port = event->_port;
605605
address.addr_ptr = (uint8_t*)event->_address->_address;
606+
address.addr_len = event->_address->_length;
606607
_connection_handler->start_listening_for_data();
607608

608609
// Include domain id to be part of endpoint name
@@ -635,9 +636,6 @@ void M2MInterfaceImpl::state_bootstrapped( EventData */*data*/)
635636
{
636637
#ifndef MBED_CLIENT_DISABLE_BOOTSTRAP_FEATURE
637638
tr_debug("M2MInterfaceImpl::state_bootstrapped");
638-
_connection_handler->stop_listening();
639-
_listen_port = rand() % 64511 + 1024;
640-
_connection_handler->bind_connection(_listen_port);
641639
#endif //MBED_CLIENT_DISABLE_BOOTSTRAP_FEATURE
642640
}
643641

@@ -819,6 +817,7 @@ void M2MInterfaceImpl::state_coap_data_received( EventData *data)
819817
}
820818
address.port = event->_address->_port;
821819
address.addr_ptr = (uint8_t*)event->_address->_address;
820+
address.addr_len = event->_address->_length;
822821

823822
// Process received data
824823
internal_event(STATE_PROCESSING_COAP_DATA);

0 commit comments

Comments
 (0)