mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-06-19 08:58:28 +02:00
cloud-setup: fix invalid assertion in nm_http_client_get_finish()
Fixes: 53bdd81800 ('cloud-setup: ensure that nm_http_client_get_finish() always returns success or error')
This commit is contained in:
parent
2a1e621704
commit
4af93f848d
1 changed files with 1 additions and 1 deletions
|
|
@ -383,7 +383,7 @@ nm_http_client_get_finish (NMHttpClient *self,
|
|||
|
||||
get_result = g_task_propagate_pointer (G_TASK (result), error);
|
||||
|
||||
nm_assert ((!!get_result) == (!error));
|
||||
nm_assert (!error || (!!get_result) == (!*error));
|
||||
|
||||
if (!get_result) {
|
||||
NM_SET_OUT (out_response_code, -1);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue