mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-29 10:00:29 +01:00
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:
parent
483f802b72
commit
c466a9713e
1 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue