mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-28 11:00:09 +01:00
cloud-setup: clear error variable in nmcs_device_reapply()
This is rather bad, because if we reach the "goto again" case, the error variable is not cleared. Subsequently passing the error location to nm_device_reapply_finish() will trigger a glib warning. Fixes:29b0420be7('nm-cloud-setup: set preserve-external-ip flag during reapply') (cherry picked from commitc70a5470be)
This commit is contained in:
parent
0a033798ac
commit
98be3dd5ac
1 changed files with 2 additions and 0 deletions
|
|
@ -833,6 +833,8 @@ nmcs_device_reapply(NMDevice *device,
|
|||
NMDeviceReapplyFlags reapply_flags = NM_DEVICE_REAPPLY_FLAGS_PRESERVE_EXTERNAL_IP;
|
||||
|
||||
again:
|
||||
g_clear_error(&data.error);
|
||||
|
||||
nm_device_reapply_async(device,
|
||||
connection,
|
||||
version_id,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue