And call g_type_init()

Otherwise it just won't work...
This commit is contained in:
Bastien Nocera
2008-10-31 12:08:51 +00:00
committed by Daniel Drake
parent 4fa5552650
commit 6a2753eae2

View File

@ -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) */