Skip to content

Commit

Permalink
Merge pull request adafruit#10103 from dhalbert/empty-ssid-check-web-…
Browse files Browse the repository at this point in the history
…workflow

web_workflow.c: check for empty SSID before starting web workflow
  • Loading branch information
dhalbert authored Feb 27, 2025
2 parents 60b0192 + 00cde47 commit 2ec0d04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion supervisor/shared/web_workflow/web_workflow.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ bool supervisor_start_web_workflow(void) {
char password[64];

os_getenv_err_t result = common_hal_os_getenv_str("CIRCUITPY_WIFI_SSID", ssid, sizeof(ssid));
if (result != GETENV_OK) {
if (result != GETENV_OK || strlen(ssid) < 1) {
return false;
}

Expand Down

0 comments on commit 2ec0d04

Please sign in to comment.