[network-manager-vpnc] auth-dialog: ensure saved secrets are passed back to NM
- From: Dan Williams <dcbw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-vpnc] auth-dialog: ensure saved secrets are passed back to NM
- Date: Thu, 2 Jun 2011 18:10:58 +0000 (UTC)
commit 5c6c56b4b2a9cb536343a75b06481e08f82a4655
Author: Dan Williams <dcbw redhat com>
Date: Thu Jun 2 13:12:56 2011 -0500
auth-dialog: ensure saved secrets are passed back to NM
If the secret was saved, it may not have been passed back to NM like
it should have be.
auth-dialog/main.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/auth-dialog/main.c b/auth-dialog/main.c
index 412ae87..699528c 100644
--- a/auth-dialog/main.c
+++ b/auth-dialog/main.c
@@ -85,13 +85,17 @@ get_secrets (const char *vpn_uuid,
/* Don't ask if both passwords are either saved and present, or unused */
if (upw_flags & NM_SETTING_SECRET_FLAG_NOT_REQUIRED)
need_upw = FALSE;
- else if (upw && !(upw_flags & NM_SETTING_SECRET_FLAG_NOT_SAVED))
+ else if (upw && !(upw_flags & NM_SETTING_SECRET_FLAG_NOT_SAVED)) {
+ *out_upw = upw;
need_upw = FALSE;
+ }
if (gpw_flags & NM_SETTING_SECRET_FLAG_NOT_REQUIRED)
need_gpw = FALSE;
- else if (gpw && !(gpw_flags & NM_SETTING_SECRET_FLAG_NOT_SAVED))
+ else if (gpw && !(gpw_flags & NM_SETTING_SECRET_FLAG_NOT_SAVED)) {
+ *out_gpw = gpw;
need_gpw = FALSE;
+ }
if (!need_upw && !need_gpw)
return TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]