diff --git a/pam/pam_fprintd.c b/pam/pam_fprintd.c index 749ea7a..555b5c9 100644 --- a/pam/pam_fprintd.c +++ b/pam/pam_fprintd.c @@ -347,6 +347,8 @@ PAM_EXTERN int pam_sm_authenticate(pam_handle_t *pamh, int flags, int argc, const char *username; int r; + g_type_init (); + pam_get_item(pamh, PAM_RHOST, (const void **)(const void*) &rhost); if (rhost != NULL && strlen(rhost) > 0) { /* remote login (e.g. over SSH) */