summaryrefslogtreecommitdiffstats
path: root/src/stk.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stk.c')
-rw-r--r--src/stk.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/stk.c b/src/stk.c
index 2ccb25e3..7a7bd758 100644
--- a/src/stk.c
+++ b/src/stk.c
@@ -809,11 +809,12 @@ static DBusMessage *stk_select_item(DBusConnection *conn,
DBG("");
- if (stk_send_envelope(stk, &e, menu_selection_envelope_cb, 0))
- return __ofono_error_failed(msg);
-
stk->pending = dbus_message_ref(msg);
+ if (stk_send_envelope(stk, &e, menu_selection_envelope_cb, 0))
+ __ofono_dbus_pending_reply(&stk->pending,
+ __ofono_error_failed(stk->pending));
+
return NULL;
}