Commit 7c50748d authored by Thomas Haller's avatar Thomas Haller

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

Fixes: dd98ada3
(cherry picked from commit 30a469e0)
parent b3ca8abe
......@@ -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);
......
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