1
0
mirror of https://github.com/Yubico/yubico-pam.git synced 2025-02-08 03:54:18 +01:00

Merge branch 'pr-189'

This commit is contained in:
Klas Lindfors 2019-03-19 15:10:00 +01:00
commit 1c6fa66825
No known key found for this signature in database
GPG Key ID: BCA00FD4B2168C0A

2
util.c
View File

@ -71,6 +71,7 @@ get_user_cfgfile_path(const char *common_path, const char *filename, const struc
}
i = snprintf(userfile, len, "%s/%s", common_path, filename);
if (i < 0 || i >= len) {
free(userfile);
return 0;
}
*fn = userfile;
@ -85,6 +86,7 @@ get_user_cfgfile_path(const char *common_path, const char *filename, const struc
}
i = snprintf(userfile, len, "%s/.yubico/%s", user->pw_dir, filename);
if (i < 0 || i >= len) {
free(userfile);
return 0;
}
*fn = userfile;