mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-11 00:10:33 +01:00
clients/secret-agent: fail request_secrets_from_ui() if there are no secrets to be requested
From looking at the code above, this likely shouldn't actually happen.
This commit is contained in:
parent
6ef825d501
commit
a4f0bda6d4
1 changed files with 3 additions and 0 deletions
|
|
@ -874,6 +874,9 @@ request_secrets_from_ui (RequestData *request)
|
|||
} else
|
||||
goto out_fail;
|
||||
|
||||
if (secrets->len == 0)
|
||||
goto out_fail;
|
||||
|
||||
g_signal_emit (request->self, signals[REQUEST_SECRETS], 0,
|
||||
request->request_id, title, msg, secrets);
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue