Skip to content

Commit

Permalink
[Tizen] Modify the memory reset location for wifi (#181) (#23453)
Browse files Browse the repository at this point in the history
Co-authored-by: ravinder.01@samsung.com <ravinder.01@samsung.com>
  • Loading branch information
2 people authored and pull[bot] committed Sep 6, 2023
1 parent 6c6be05 commit 2855769
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/platform/Tizen/WiFiManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -251,11 +251,11 @@ bool WiFiManager::_FoundAPCb(wifi_manager_ap_h ap, void * userData)
wifiErr = wifi_manager_ap_clone(clonedAp, ap);
VerifyOrExit(wifiErr == WIFI_MANAGER_ERROR_NONE, ChipLogError(DeviceLayer, "FAIL: clone AP [%s]", get_error_message(wifiErr)));

memset(sInstance.mWiFiSSID, 0, sizeof(sInstance.mWiFiSSID));
memset(sInstance.mWiFiKey, 0, sizeof(sInstance.mWiFiKey));
cbRet = false;

exit:
memset(sInstance.mWiFiSSID, 0, sizeof(sInstance.mWiFiSSID));
memset(sInstance.mWiFiKey, 0, sizeof(sInstance.mWiFiKey));
g_free(essid);
return cbRet;
}
Expand Down

0 comments on commit 2855769

Please sign in to comment.