libnm-util: fix WEP key type comparison in nm_utils_wep_key_valid()
This commit is contained in:
@@ -827,7 +827,8 @@ nm_utils_wep_key_valid (const char *key, NMWepKeyType wep_type)
|
||||
return FALSE;
|
||||
|
||||
keylen = strlen (key);
|
||||
if (wep_type == NM_WEP_KEY_TYPE_KEY || NM_WEP_KEY_TYPE_UNKNOWN) {
|
||||
if ( wep_type == NM_WEP_KEY_TYPE_KEY
|
||||
|| wep_type == NM_WEP_KEY_TYPE_UNKNOWN) {
|
||||
if (keylen == 10 || keylen == 26) {
|
||||
/* Hex key */
|
||||
for (i = 0; i < keylen; i++) {
|
||||
|
Reference in New Issue
Block a user