mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-29 01:00:09 +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) (cherry picked from commit6c4a6f2b75)
This commit is contained in:
parent
c173fc9639
commit
3dcad00c8a
1 changed files with 1 additions and 1 deletions
|
|
@ -5547,7 +5547,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