Updated connman to version 1.35
[platform/upstream/connman.git] / vpn / plugins / openconnect.c
index 5feaed9..87679bf 100755 (executable)
@@ -315,7 +315,7 @@ static void request_input_cookie_reply(DBusMessage *reply, void *user_data)
 
        DBG("provider %p", data->provider);
 
-       if (dbus_message_get_type(reply) == DBUS_MESSAGE_TYPE_ERROR)
+       if (!reply || dbus_message_get_type(reply) == DBUS_MESSAGE_TYPE_ERROR)
                goto err;
 
        if (!vpn_agent_check_reply_has_dict(reply))