mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-03-11 18:50:36 +01:00
device: fix NULL pointer dereference in dhcp6_start()
Don't crash when nm_device_dhcp6_renew() calls dhcp6_start() with NULL @reason. Fixes:d1295b12e9(cherry picked from commitdbf0b343ec)
This commit is contained in:
parent
6f3921c8f8
commit
6c4a6f2b75
1 changed files with 1 additions and 1 deletions
|
|
@ -5965,7 +5965,7 @@ dhcp6_start (NMDevice *self, gboolean wait_for_ll, NMDeviceStateReason *reason)
|
|||
}
|
||||
|
||||
if (!dhcp6_start_with_link_ready (self, connection)) {
|
||||
*reason = NM_DEVICE_STATE_REASON_DHCP_START_FAILED;
|
||||
NM_SET_OUT (reason, NM_DEVICE_STATE_REASON_DHCP_START_FAILED);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue