mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-09-18 15:42:15 +00:00
2008-08-28 Dan Williams <dcbw@redhat.com>
* auth-dialog/main.c - (get_secrets): don't gtk_widget_show_all() because that exposes widgets that were supposed to be hidden - (main): don't segfault on missing passwords (like hitting Cancel) git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4026 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
parent
e35ae559fa
commit
c6e945c82b
|
@ -1,3 +1,10 @@
|
|||
2008-08-28 Dan Williams <dcbw@redhat.com>
|
||||
|
||||
* auth-dialog/main.c
|
||||
- (get_secrets): don't gtk_widget_show_all() because that exposes
|
||||
widgets that were supposed to be hidden
|
||||
- (main): don't segfault on missing passwords (like hitting Cancel)
|
||||
|
||||
2008-08-26 Dan Williams <dcbw@redhat.com>
|
||||
|
||||
* auth-dialog/main.c
|
||||
|
|
|
@ -164,7 +164,7 @@ get_secrets (const char *vpn_uuid,
|
|||
*password = NULL;
|
||||
}
|
||||
|
||||
gtk_widget_show_all (GTK_WIDGET (dialog));
|
||||
gtk_widget_show (GTK_WIDGET (dialog));
|
||||
|
||||
if (gnome_two_password_dialog_run_and_block (dialog)) {
|
||||
*password = gnome_two_password_dialog_get_password (dialog);
|
||||
|
@ -238,8 +238,10 @@ main (int argc, char *argv[])
|
|||
printf ("%s\n%s\n", NM_PPTP_KEY_PASSWORD, password);
|
||||
printf ("\n\n");
|
||||
|
||||
memset (password, 0, strlen (password));
|
||||
g_free (password);
|
||||
if (password) {
|
||||
memset (password, 0, strlen (password));
|
||||
g_free (password);
|
||||
}
|
||||
exit_status = 0;
|
||||
|
||||
/* for good measure, flush stdout since Kansas is going Bye-Bye */
|
||||
|
|
Loading…
Reference in a new issue