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: fbb1662269
(cherry picked from commit c4a0002f05)
This commit is contained in:
Lubomir Rintel
2017-04-13 14:09:44 +02:00
parent ed6991145a
commit 55ad538cfb

View File

@@ -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;