Commit 695f6cee authored by Beniamino Galvani's avatar Beniamino Galvani

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.
parent 8665cdfe
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment