Skip to content

Commit

Permalink
OdinWifiInterface is calling memcpy with a null pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
janjongboom committed Mar 7, 2019
1 parent a87c7c8 commit f3614ab
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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();
}
Expand Down

0 comments on commit f3614ab

Please sign in to comment.