Skip to content

Commit 00cde47

Browse files
committed
web_workflow.c: check for empty SSID before starting web workflow
1 parent 0654cdf commit 00cde47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

supervisor/shared/web_workflow/web_workflow.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ bool supervisor_start_web_workflow(void) {
243243
char password[64];
244244

245245
os_getenv_err_t result = common_hal_os_getenv_str("CIRCUITPY_WIFI_SSID", ssid, sizeof(ssid));
246-
if (result != GETENV_OK) {
246+
if (result != GETENV_OK || strlen(ssid) < 1) {
247247
return false;
248248
}
249249

0 commit comments

Comments
 (0)