mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-09 04:13:33 +02:00
device: Clear username on open failure
This commit is contained in:
committed by
Bastien Nocera
parent
791a208afd
commit
46b7d7c1a7
@ -602,6 +602,7 @@ static void dev_open_cb(FpDevice *dev, GAsyncResult *res, void *user_data)
|
|||||||
FPRINT_ERROR_INTERNAL,
|
FPRINT_ERROR_INTERNAL,
|
||||||
"Open failed with error: %s", error->message);
|
"Open failed with error: %s", error->message);
|
||||||
dbus_g_method_return_error(session->context_claim_device, dbus_error);
|
dbus_g_method_return_error(session->context_claim_device, dbus_error);
|
||||||
|
g_clear_pointer(&priv->username, g_free);
|
||||||
g_clear_pointer(&priv->session, g_free);
|
g_clear_pointer(&priv->session, g_free);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user