mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-22 04:10:27 +01:00
ppp-manager: avoid crash with nonexisting link in impl_ppp_manager_set_ifindex()
Fixes:dd98ada33f(cherry picked from commit30a469e0bb) (cherry picked from commit7c50748dcc)
This commit is contained in:
parent
3392c43958
commit
482fcb2501
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