Skip to content

ESPHost - fix softAP password check #248

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 16, 2024

Conversation

JAndrassy
Copy link
Contributor

SoftAP password length was checked for open network and was not checked for secured

@per1234 per1234 added type: imperfection Perceived defect in any part of project topic: code Related to content of the project itself labels Jan 23, 2024
@pennam pennam self-requested a review February 15, 2024 10:53
Copy link
Contributor

@pennam pennam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JAndrassy i think it should be like this

if ((cfg.encryption_mode != WIFI_AUTH_OPEN) && 
     ((strlen((char *)&cfg.pwd) > MAX_PWD_LENGTH) ||
      (strlen((char *)&cfg.pwd) < MIN_PWD_LENGTH))) {

@JAndrassy
Copy link
Contributor Author

yes. I just did a quick fix because I got error about password for WIFI_AUTH_OPEN and at the same time I released that just before that I used a short password and it took me a while to figure out why the PC doesn't want to connect.
I can't modify and retest the PR right now.

@JAndrassy JAndrassy force-pushed the esphost_fix_pwd_check branch from c373408 to d27eff5 Compare February 15, 2024 18:45
@JAndrassy
Copy link
Contributor Author

done

Copy link
Contributor

@pennam pennam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @JAndrassy

@pennam pennam merged commit 854d3b2 into arduino:main Feb 16, 2024
@JAndrassy JAndrassy deleted the esphost_fix_pwd_check branch February 16, 2024 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants