summaryrefslogtreecommitdiff
path: root/src/ppp
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2018-09-11 21:23:42 +0200
committerThomas Haller <thaller@redhat.com>2018-09-11 21:40:12 +0200
commit7c50748dcc2e51ba5e0588a782af6f25aec26e4e (patch)
treefddedbeb6ed1f8c57933ecbfc95923fe55741c4b /src/ppp
parentb3ca8abe3810af3eda85d446b6c45dd96d820489 (diff)
downloadNetworkManager-7c50748dcc2e51ba5e0588a782af6f25aec26e4e.tar.gz
ppp-manager: avoid crash with nonexisting link in impl_ppp_manager_set_ifindex()
Fixes: dd98ada33f33820e0d0874d9aa97e0c2bfc7cdd0 (cherry picked from commit 30a469e0bba5ac052bc29914783e62ed24b2bd67)
Diffstat (limited to 'src/ppp')
-rw-r--r--src/ppp/nm-ppp-manager.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ppp/nm-ppp-manager.c b/src/ppp/nm-ppp-manager.c
index b1dfe665ba..fe2adf578e 100644
--- a/src/ppp/nm-ppp-manager.c
+++ b/src/ppp/nm-ppp-manager.c
@@ -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);