summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gnss.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gnss.c b/src/gnss.c
index ba576ea5..df5b2b40 100644
--- a/src/gnss.c
+++ b/src/gnss.c
@@ -181,7 +181,7 @@ static DBusMessage *gnss_unregister_agent(DBusConnection *conn,
return __ofono_error_failed(msg);
if (!gnss_agent_matches(gnss->posr_agent, agent_path, agent_bus))
- return __ofono_error_failed(msg);
+ return __ofono_error_access_denied(msg);
gnss->pending = dbus_message_ref(msg);