[network-manager-vpnc] auth-dialog: fix auth failure due to ea9812bbec074c35f600104397a0414b55057b46



commit 668d6c30d74a4108e70c00b85e590631c08d2cad
Author: Dan Williams <dcbw redhat com>
Date:   Mon Mar 19 10:51:59 2012 -0500

    auth-dialog: fix auth failure due to ea9812bbec074c35f600104397a0414b55057b46
    
    Need to return TRUE/success here if not using external UI mode and
    we've got passwords.  Named commit broke that.

 auth-dialog/main.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/auth-dialog/main.c b/auth-dialog/main.c
index ffc94b1..fa34039 100644
--- a/auth-dialog/main.c
+++ b/auth-dialog/main.c
@@ -207,7 +207,8 @@ get_secrets (const char *vpn_uuid,
 		/* If interaction isn't allowed, just return existing secrets */
 		*out_upw = upw;
 		*out_gpw = gpw;
-		goto out;
+		g_free (prompt);
+		return TRUE;
 	}
 
 	dialog = VPN_PASSWORD_DIALOG (vpn_password_dialog_new (_("Authenticate VPN"), prompt, NULL));



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]