mirror of
https://github.com/espressif/esp-idf
synced 2025-03-12 18:49:08 -04: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.