mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-24 18:20:07 +01:00
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:
parent
ed6991145a
commit
55ad538cfb
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue