]> granicus.if.org Git - esp-idf/commit
Wi-Fi Provisioning : Bugfix in copying SSID and Passphrase
authorAnurag Kar <anurag.kar@espressif.com>
Mon, 10 Jun 2019 12:19:30 +0000 (17:49 +0530)
committerbot <bot@espressif.com>
Fri, 5 Jul 2019 13:20:40 +0000 (13:20 +0000)
commit933674301fd0026a0779859d69923e9a851ccd89
treeb3429424b23142bef24f5a9629040fef42f4c60c
parent3b2e231ae33f2b9c895712788ef22169c92c4476
Wi-Fi Provisioning : Bugfix in copying SSID and Passphrase

These changes guarantee that the SSID and Passphrase received via protocomm are NULL terminated and size limited to their standard lengths.

List of changes:
* Corrected length of passphrase field in wifi_prov_config_set_data_t structure
* Performing length checks on SSID, passphrase and bssid, when populating wifi_prov_config_set_data_t structure with received credentials
components/wifi_provisioning/include/wifi_provisioning/wifi_config.h
components/wifi_provisioning/src/wifi_config.c