[realtek-ambz] Fix crash after WiFi scan (#258)

This commit is contained in:
Hajo Noerenberg
2024-02-26 21:35:35 +01:00
committed by GitHub
parent cf52021d38
commit a1f8516e60

View File

@@ -24,6 +24,7 @@ static rtw_result_t scanHandler(rtw_scan_handler_result_t *result) {
if (cls->scanAlloc(last) < last) {
return RTW_SUCCESS;
}
last--;
scan->ap[last].ssid = strdup((char *)net->SSID.val);
scan->ap[last].auth = securityTypeToAuthMode(net->security);