Skip to content

Commit f3614ab

Browse files
authored
OdinWifiInterface is calling memcpy with a null pointer
1 parent a87c7c8 commit f3614ab

File tree

1 file changed

+1
-1
lines changed
  • targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F439xI/TARGET_MODULE_UBLOX_ODIN_W2/sdk/ublox-odin-w2-drivers

1 file changed

+1
-1
lines changed

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F439xI/TARGET_MODULE_UBLOX_ODIN_W2/sdk/ublox-odin-w2-drivers/OdinWiFiInterface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -879,7 +879,7 @@ void OdinWiFiInterface::handle_user_connect(user_connect_s *user_connect)
879879

880880
if(error_code == NSAPI_ERROR_OK) {
881881
memset(&_wlan_status_connected_info, 0, sizeof(cbWLAN_StatusConnectedInfo));
882-
memcpy(&_wlan_status_disconnected_info, 0, sizeof(cbWLAN_StatusDisconnectedInfo));
882+
memset(&_wlan_status_disconnected_info, 0, sizeof(cbWLAN_StatusDisconnectedInfo));
883883

884884
_state_sta = entry_wait_connect();
885885
}

0 commit comments

Comments
 (0)