mirror of
https://github.com/espressif/esp-idf.git
synced 2025-12-01 23:00:08 +01:00
If number of scanned networks is zero, while getting the list, since we try to allocate zero bytes, we get a NULL pointer in response. This is considered as an error and the provisioning worflow breaks there. Adding a check before allocation resolves the issue.