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



commit 6547f6663d1f6b6901f0680f705ed2d8cba67bb6
Author: Dan Williams <dcbw redhat com>
Date:   Mon Mar 19 11:01:13 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 27cb1c2..5e06cee 100644
--- a/auth-dialog/main.c
+++ b/auth-dialog/main.c
@@ -184,7 +184,8 @@ get_secrets (const char *vpn_name,
 			*out_password = password;
 		if (need_certpass)
 			*out_certpass = certpass;
-		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]