mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-04 18:50:29 +01:00
2004-08-25 Dan Williams <dcbw@redhat.com>
* src/NetworkManagerWireless.c - Don't try to defererence blank passphrases git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@76 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
parent
21862371b6
commit
fe7a2be201
1 changed files with 5 additions and 2 deletions
|
|
@ -48,9 +48,12 @@ char *nm_wireless_128bit_key_from_passphrase (char *passphrase)
|
|||
int i;
|
||||
|
||||
g_return_val_if_fail (passphrase != NULL, NULL);
|
||||
|
||||
/* Get at least 64 bits */
|
||||
|
||||
passphrase_len = strlen (passphrase);
|
||||
if (passphrase_len < 1)
|
||||
return (NULL);
|
||||
|
||||
/* Get at least 64 bits */
|
||||
for (i = 0; i < 64; i++)
|
||||
temp_buf [i] = passphrase [i % passphrase_len];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue