2007-03-07 Dan Williams <dcbw@redhat.com>

Patch from Simon Geard <delgarde@ihug.co.nz>  (Gnome.org #394956)
	* src/nm-ap-security-wpa-psk.c
		- (real_write_supplicant_config): work with PSKs that may contain
			zeros in the binary format rather than treating it as a string



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2445 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
Dan Williams 2007-03-07 20:40:21 +00:00
parent 3352b8a5dc
commit c190818f37
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,10 @@
2007-03-07 Dan Williams <dcbw@redhat.com>
Patch from Simon Geard <delgarde@ihug.co.nz> (Gnome.org #394956)
* src/nm-ap-security-wpa-psk.c
- (real_write_supplicant_config): work with PSKs that may contain
zeros in the binary format rather than treating it as a string
2007-03-02 Tambet Ingo <tambet@ximian.com>
* libnm-glib/nm-device-802-11-wireless.c

View file

@ -165,7 +165,7 @@ real_write_supplicant_config (NMAPSecurity *instance,
goto out;
}
if (!nm_supplicant_config_add_option (config, "psk", bin_key, -1)) {
if (!nm_supplicant_config_add_option (config, "psk", bin_key, strlen (key) / 2)) {
g_free (bin_key);
goto out;
}