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 commitc4a0002f05
)
This commit is contained in:
@@ -304,7 +304,7 @@ verify_request (NMSecretAgent *self,
|
|||||||
{
|
{
|
||||||
NMConnection *connection = NULL;
|
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))
|
if (!verify_sender (self, context, error))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
Reference in New Issue
Block a user