8000 Merge pull request #10103 from dhalbert/empty-ssid-check-web-workflow · adafruit/circuitpython@2ec0d04 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2ec0d04

Browse files
authored
Merge pull request #10103 from dhalbert/empty-ssid-check-web-workflow
web_workflow.c: check for empty SSID before starting web workflow
2 parents 60b0192 + 00cde47 commit 2ec0d04

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)
0