do not return empty usernames

This commit is contained in:
Nikos Mavrogiannopoulos
2013-12-08 13:57:02 +01:00
parent cd2a4d1abf
commit bfb272ff99

View File

@@ -284,10 +284,13 @@ int pret;
return -1;
}
if (user != NULL)
if (user != NULL) {
snprintf(username, username_size, "%s", user);
return 0;
return 0;
}
return -1;
}
static void pam_auth_deinit(void* ctx)