mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-08 20:03:34 +02:00
And call g_type_init()
Otherwise it just won't work...
This commit is contained in:
committed by
Daniel Drake
parent
4fa5552650
commit
6a2753eae2
@ -347,6 +347,8 @@ PAM_EXTERN int pam_sm_authenticate(pam_handle_t *pamh, int flags, int argc,
|
|||||||
const char *username;
|
const char *username;
|
||||||
int r;
|
int r;
|
||||||
|
|
||||||
|
g_type_init ();
|
||||||
|
|
||||||
pam_get_item(pamh, PAM_RHOST, (const void **)(const void*) &rhost);
|
pam_get_item(pamh, PAM_RHOST, (const void **)(const void*) &rhost);
|
||||||
if (rhost != NULL && strlen(rhost) > 0) {
|
if (rhost != NULL && strlen(rhost) > 0) {
|
||||||
/* remote login (e.g. over SSH) */
|
/* remote login (e.g. over SSH) */
|
||||||
|
|||||||
Reference in New Issue
Block a user