summary refs log tree commit diff
path: root/libnm/tests/test-secret-agent.c
diff options
context:
space:
mode:
Diffstat (limited to 'libnm/tests/test-secret-agent.c')
-rw-r--r--libnm/tests/test-secret-agent.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libnm/tests/test-secret-agent.c b/libnm/tests/test-secret-agent.c
index 25752e9a..77f972f5 100644
--- a/libnm/tests/test-secret-agent.c
+++ b/libnm/tests/test-secret-agent.c
@@ -349,9 +349,10 @@ connection_activated_none_cb (GObject *c,
                               gpointer user_data)
 {
 	TestSecretAgentData *sadata = user_data;
+	NMActiveConnection *ac;
 	gs_free_error GError *error = NULL;
 
-	nm_client_activate_connection_finish (sadata->client, result, &error);
+	ac = nm_client_activate_connection_finish (sadata->client, result, &error);
 	g_assert_error (error, NM_AGENT_MANAGER_ERROR, NM_AGENT_MANAGER_ERROR_NO_SECRETS);
 
 	g_main_loop_quit (sadata->loop);