Patch from Herbert Graeber <herbert@graeber-clan.de>

* Fix string allocation error that cause the crash on x86_64 systems.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2212 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
Antony Mee 2007-01-07 17:09:37 +00:00
parent 483f802b72
commit c466a9713e

View file

@ -178,8 +178,8 @@ get_passwords (const char *vpn_name, const char *vpn_service, gboolean retry)
// Statically set the authentication type for now.
auth_type = g_strdup("CHAP");
result = g_slist_append (result, auth_type);
result = g_slist_append (result, username);
result = g_slist_append (result, password);
result = g_slist_append (result, g_strdup(username));
result = g_slist_append (result, g_strdup(password));
switch (gnome_two_password_dialog_get_remember (GNOME_TWO_PASSWORD_DIALOG (dialog)))
{
@ -198,6 +198,7 @@ get_passwords (const char *vpn_name, const char *vpn_service, gboolean retry)
if (keyring_username!=NULL) g_free (keyring_username);
if (keyring_password!=NULL) g_free (keyring_password);
gtk_widget_hide (dialog);
gtk_widget_destroy (dialog);
return result;