]> 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>
Wed, 12 Jun 2019 05:42:46 +0000 (05:42 +0000)
commita75be3413e6251e17ce5efd7581c04548d2ac2c1
treea3015399ae53934b290aea00a25ff18d9baed89d
parent065eb918fd8cd60bea3ad88a03fabe4ccfa06dd3
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