OdinWifiInterface is calling memcpy with a null pointer

pull/10326/head
Jan Jongboom 2019-03-07 16:47:56 +01:00 committed by Martin Kojtal
parent b031dfa1d7
commit 716e4d43cb
1 changed files with 1 additions and 1 deletions

View File

@ -879,7 +879,7 @@ void OdinWiFiInterface::handle_user_connect(user_connect_s *user_connect)
if(error_code == NSAPI_ERROR_OK) {
memset(&_wlan_status_connected_info, 0, sizeof(cbWLAN_StatusConnectedInfo));
memcpy(&_wlan_status_disconnected_info, 0, sizeof(cbWLAN_StatusDisconnectedInfo));
memset(&_wlan_status_disconnected_info, 0, sizeof(cbWLAN_StatusDisconnectedInfo));
_state_sta = entry_wait_connect();
}