mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-09 12:23:34 +02:00
Fix GetAll properties call
The error wasn't properly initialised, but wasn't used anyway, and we were missing the interface argument.
This commit is contained in:
committed by
Daniel Drake
parent
c9fdeb47aa
commit
2b71776124
@ -303,7 +303,7 @@ static gboolean verify_timeout_cb (gpointer user_data)
|
|||||||
|
|
||||||
static int do_verify(DBusGConnection *connection, GMainLoop *loop, pam_handle_t *pamh, DBusGProxy *dev)
|
static int do_verify(DBusGConnection *connection, GMainLoop *loop, pam_handle_t *pamh, DBusGProxy *dev)
|
||||||
{
|
{
|
||||||
GError *error;
|
GError *error = NULL;
|
||||||
GHashTable *props;
|
GHashTable *props;
|
||||||
DBusGProxy *p;
|
DBusGProxy *p;
|
||||||
verify_data *data;
|
verify_data *data;
|
||||||
@ -319,7 +319,7 @@ static int do_verify(DBusGConnection *connection, GMainLoop *loop, pam_handle_t
|
|||||||
"net.reactivated.Fprint", dbus_g_proxy_get_path (dev),
|
"net.reactivated.Fprint", dbus_g_proxy_get_path (dev),
|
||||||
"org.freedesktop.DBus.Properties");
|
"org.freedesktop.DBus.Properties");
|
||||||
|
|
||||||
if (dbus_g_proxy_call (p, "GetAll", &error, G_TYPE_INVALID,
|
if (dbus_g_proxy_call (p, "GetAll", NULL, G_TYPE_STRING, "net.reactivated.Fprint.Device", G_TYPE_INVALID,
|
||||||
dbus_g_type_get_map ("GHashTable", G_TYPE_STRING, G_TYPE_VALUE), &props, G_TYPE_INVALID)) {
|
dbus_g_type_get_map ("GHashTable", G_TYPE_STRING, G_TYPE_VALUE), &props, G_TYPE_INVALID)) {
|
||||||
const char *scan_type;
|
const char *scan_type;
|
||||||
data->driver = g_value_dup_string (g_hash_table_lookup (props, "name"));
|
data->driver = g_value_dup_string (g_hash_table_lookup (props, "name"));
|
||||||
|
|||||||
Reference in New Issue
Block a user