Commit c4a0002f authored by Lubomir Rintel's avatar Lubomir Rintel

libnm-glib/secret-agent: don't error out on missing out_connection

It's perfectly valid to call the function with out_connection == NULL
when connection_hash == NULL too, as cancel_get_secrets() does.

Fixes: fbb16622
parent ecec03c8
......@@ -304,7 +304,7 @@ verify_request (NMSecretAgent *self,
NMConnection *connection = NULL;
g_return_val_if_fail (out_connection, FALSE);
g_return_val_if_fail (!connection_hash || out_connection, FALSE);
if (!verify_sender (self, context, error))
return FALSE;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment