mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-19 05:37:54 +00:00
wifi: fix off-by-one in min PSK length handling
The MIN_PSK_LENGTH constant was not adjusted to accommodate for the semcantic change when switching from using the raw char array to using the Genode::String class. The Genode::String::length() method includes the terminating NUL byte while strlen() does not. Fixes #2296.
This commit is contained in:
parent
5ad4da4b1b
commit
27cc20049e
@ -171,7 +171,7 @@ struct Wlan_configration
|
||||
enum { MAX_SSID_LENGTH = 32 + 1,
|
||||
BSSID_LENGTH = 12 + 5 + 1,
|
||||
PROT_LENGTH = 7 + 1,
|
||||
MIN_PSK_LENGTH = 8,
|
||||
MIN_PSK_LENGTH = 8 + 1,
|
||||
MAX_PSK_LENGTH = 63 + 1};
|
||||
|
||||
String<MAX_SSID_LENGTH> ssid;
|
||||
|
Loading…
Reference in New Issue
Block a user