ppp-manager: avoid crash with nonexisting link in impl_ppp_manager_set_ifindex()

Fixes: dd98ada33f
(cherry picked from commit 30a469e0bb)
This commit is contained in:
Thomas Haller 2018-09-11 21:23:42 +02:00
parent b3ca8abe38
commit 7c50748dcc

View file

@ -462,7 +462,11 @@ impl_ppp_manager_set_ifindex (NMDBusObject *obj,
obj_keep_alive = nmp_object_ref (NMP_OBJECT_UP_CAST (plink));
g_signal_emit (self, signals[IFINDEX_SET], 0, ifindex, plink->name);
g_signal_emit (self,
signals[IFINDEX_SET],
0,
ifindex,
plink ? plink->name : NULL);
out:
g_dbus_method_invocation_return_value (invocation, NULL);