OdinWifiInterface is calling memcpy with a null pointer

pull/9986/head
Jan Jongboom 2019-03-07 16:47:56 +01:00 committed by GitHub
parent a87c7c82f3
commit f3614abc30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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) { if(error_code == NSAPI_ERROR_OK) {
memset(&_wlan_status_connected_info, 0, sizeof(cbWLAN_StatusConnectedInfo)); 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(); _state_sta = entry_wait_connect();
} }