From 7358049a587d7cd696b2f87c7d3ab4721af37b87 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Fri, 25 Mar 2011 14:48:44 -0500 Subject: gnss: block send_element if we have no agent --- src/gnss.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/gnss.c b/src/gnss.c index 20552d21..37f93ecf 100644 --- a/src/gnss.c +++ b/src/gnss.c @@ -230,6 +230,9 @@ static DBusMessage *gnss_send_element(DBusConnection *conn, DBUS_TYPE_INVALID)) return __ofono_error_invalid_args(msg); + if (gnss->posr_agent == NULL) + return __ofono_error_not_available(msg); + if (!gnss_agent_sender_matches(gnss->posr_agent, caller)) return __ofono_error_access_denied(msg); -- cgit v1.2.3