mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-29 05:40:11 +01:00
nmcli: fix generating hotspot password
The generated password was all non-alphanumeric characters. Fixes:6e96d71731('all: use nm_random_*() instead of g_random_*()') (cherry picked from commitac2fb0e93d)
This commit is contained in:
parent
7982a3d2eb
commit
b01524d5e7
1 changed files with 1 additions and 1 deletions
|
|
@ -4107,7 +4107,7 @@ generate_wpa_key(char *key, size_t len)
|
|||
do {
|
||||
c = nm_random_u64_range_full(33, 126, TRUE);
|
||||
/* too many non alphanumeric characters are hard to remember for humans */
|
||||
} while (g_ascii_isalnum(c));
|
||||
} while (!g_ascii_isalnum(c));
|
||||
|
||||
key[i] = (char) c;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue