Skip to content

Commit dbf6658

Browse files
authored
Fix check for max values inclusive for ssid and password (#337)
1 parent d91fcb6 commit dbf6658

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nanoFramework.System.Net/NetworkInformation/Wireless80211Configuration.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ private void ValidateConfiguration()
116116
}
117117

118118
// check password and SSID length
119-
if ((_password.Length >= MaxPasswordLength) ||
120-
(_ssid.Length >= MaxSsidLength))
119+
if ((_password.Length > MaxPasswordLength) ||
120+
(_ssid.Length > MaxSsidLength))
121121
{
122122
#pragma warning disable S3928 // OK to not include a meaningful message
123123
throw new ArgumentOutOfRangeException();

0 commit comments

Comments
 (0)