Commit 6a2753ea authored by Bastien Nocera's avatar Bastien Nocera Committed by Daniel Drake
Browse files

And call g_type_init()

Otherwise it just won't work...
parent 4fa55526
......@@ -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) */
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment