When browser is requested and users tries to disconnect reply will
be NULL. This fix check the reply message before acting on it.
---
 src/agent-connman.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/agent-connman.c b/src/agent-connman.c
index b2049a3..32ca67d 100644
--- a/src/agent-connman.c
+++ b/src/agent-connman.c
@@ -582,6 +582,9 @@ static void request_browser_reply(DBusMessage *reply, void 
*user_data)
        bool result = false;
        const char *error = NULL;
 
+       if (!reply)
+               goto done;
+
        if (dbus_message_get_type(reply) == DBUS_MESSAGE_TYPE_ERROR) {
                error = dbus_message_get_error_name(reply);
                goto done;
-- 
1.9.1

_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman

Reply via email to