From 9173d7e2e40bf8d0d4f781eea2d32bc1dfb83f2e Mon Sep 17 00:00:00 2001 From: Dragos Tatulea Date: Thu, 17 Mar 2016 18:02:16 +0100 Subject: [PATCH] gprs: pri_set_apn: make reply msg optional Automatic context activation will set the apn by itself. No dbus message to reply to. --- src/gprs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gprs.c b/src/gprs.c index 99f829f2..e956a236 100644 --- a/src/gprs.c +++ b/src/gprs.c @@ -965,7 +965,8 @@ static DBusMessage *pri_set_apn(struct pri_context *ctx, DBusConnection *conn, storage_sync(ctx->gprs->imsi, SETTINGS_STORE, settings); } - g_dbus_send_reply(conn, msg, DBUS_TYPE_INVALID); + if (msg) + g_dbus_send_reply(conn, msg, DBUS_TYPE_INVALID); ofono_dbus_signal_property_changed(conn, ctx->path, OFONO_CONNECTION_CONTEXT_INTERFACE,