Commit fe7a2be2 authored by Dan Williams's avatar Dan Williams
Browse files

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
parent 21862371
......@@ -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];
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment