mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-09 03:00:20 +01:00
device: accept NULL plink
For PPP devices we can't create a link in advance, as the link is created by pppd when the connection is established.
This commit is contained in:
parent
8665cdfeff
commit
695f6ceebb
1 changed files with 4 additions and 2 deletions
|
|
@ -2911,8 +2911,10 @@ nm_device_create_and_realize (NMDevice *self,
|
|||
if (NM_DEVICE_GET_CLASS (self)->create_and_realize) {
|
||||
if (!NM_DEVICE_GET_CLASS (self)->create_and_realize (self, connection, parent, &plink, error))
|
||||
return FALSE;
|
||||
plink_copy = *plink;
|
||||
plink = &plink_copy;
|
||||
if (plink) {
|
||||
plink_copy = *plink;
|
||||
plink = &plink_copy;
|
||||
}
|
||||
}
|
||||
|
||||
realize_start_setup (self, plink,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue