diff options
author | Beniamino Galvani <bgalvani@redhat.com> | 2018-11-06 10:38:35 +0100 |
---|---|---|
committer | Beniamino Galvani <bgalvani@redhat.com> | 2018-11-06 10:38:35 +0100 |
commit | 7747c8d8aeabbeada03aee9f944b33be2f45f846 (patch) | |
tree | 5a901faca40b849246abb42355b8329eca9419ff | |
parent | f330b198b18e9502d8c9ade9e33fa5ff8030da99 (diff) | |
download | NetworkManager-7747c8d8aeabbeada03aee9f944b33be2f45f846.tar.gz |
ofono: fix crash when disconnecting
Fixes: 9b935fad9b108ee10299f2bd56f27db59ee34637
-rw-r--r-- | src/devices/wwan/nm-modem-ofono.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/wwan/nm-modem-ofono.c b/src/devices/wwan/nm-modem-ofono.c index 56b6d745c5..8efe0253a6 100644 --- a/src/devices/wwan/nm-modem-ofono.c +++ b/src/devices/wwan/nm-modem-ofono.c @@ -166,7 +166,7 @@ static void disconnect_context_complete_on_idle (gpointer user_data, GCancellable *cancellable) { - DisconnectContext *ctx = NULL; + DisconnectContext *ctx = user_data; gs_free_error GError *error = NULL; if (!g_cancellable_set_error_if_cancelled (cancellable, &error)) { |