From c0663e42d0691590a2a1ba4f27363a8b51e4bea7 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Fri, 20 Dec 2013 12:58:42 -0500 Subject: [PATCH] tui: correctly return errors from NmtSecretAgent --- tui/nmt-secret-agent.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tui/nmt-secret-agent.c b/tui/nmt-secret-agent.c index f0a01cda0..0a111105d 100644 --- a/tui/nmt-secret-agent.c +++ b/tui/nmt-secret-agent.c @@ -447,7 +447,8 @@ nmt_secret_agent_get_secrets (NMSecretAgent *agent, error = g_error_new (NM_SECRET_AGENT_ERROR, NM_SECRET_AGENT_ERROR_INTERNAL_ERROR, "Request for %s secrets already pending", request_id); nope: - callback (agent, connection, NULL, NULL, callback_data); + callback (agent, connection, NULL, error, callback_data); + g_error_free (error); g_free (request_id); return; }