diff options
author | Thomas Haller <thaller@redhat.com> | 2018-09-11 21:23:42 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2018-09-11 21:30:14 +0200 |
commit | 30a469e0bba5ac052bc29914783e62ed24b2bd67 (patch) | |
tree | 98c70235f549b6614bc654e185ea9125cc1bf8a8 | |
parent | e66e4d0e718b0f9102160e98fb6a1bf059677d71 (diff) | |
download | NetworkManager-30a469e0bba5ac052bc29914783e62ed24b2bd67.tar.gz |
ppp-manager: avoid crash with nonexisting link in impl_ppp_manager_set_ifindex()
Fixes: dd98ada33f33820e0d0874d9aa97e0c2bfc7cdd0
-rw-r--r-- | src/ppp/nm-ppp-manager.c | 6 |
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); |