mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-09 22:50:21 +01:00
ppp-manager: avoid crash with nonexisting link in impl_ppp_manager_set_ifindex()
Fixes:dd98ada33f(cherry picked from commit30a469e0bb)
This commit is contained in:
parent
b3ca8abe38
commit
7c50748dcc
1 changed files with 5 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue