diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2014-01-20 16:24:18 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2014-01-20 18:34:33 +0000 |
commit | 6b7558c8f88851ab954174e62d3b1e46cd2664b1 (patch) | |
tree | ce070d0cbf8fc33ad0919d0d7925eececbbe88a4 /libpam_misc | |
parent | f9db4aae8b0292d1273c7acda1cc20ff87fabd5c (diff) | |
download | pam-6b7558c8f88851ab954174e62d3b1e46cd2664b1.tar.gz pam-6b7558c8f88851ab954174e62d3b1e46cd2664b1.tar.bz2 pam-6b7558c8f88851ab954174e62d3b1e46cd2664b1.zip |
pam_limits: fix utmp->ut_user handling
ut_user member of struct utmp is a string that is not necessarily
null-terminated, so extra care should be taken when using it.
* modules/pam_limits/pam_limits.c (check_logins): Convert ut->UT_USER to
a null-terminated string and consistently use it where a null-terminated
string is expected.
Diffstat (limited to 'libpam_misc')
0 files changed, 0 insertions, 0 deletions