diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2012-07-18 20:35:45 +0200 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2012-07-18 15:10:38 -0400 |
commit | 5266c7472ffb94504b8249310aee5c8a5511a922 (patch) | |
tree | 95641bdeeaff133711e7b311df852078da87e248 | |
parent | e82832a64fd456d1541ce0ea3902bcfb05e69642 (diff) | |
download | sssd-5266c7472ffb94504b8249310aee5c8a5511a922.tar.gz sssd-5266c7472ffb94504b8249310aee5c8a5511a922.tar.bz2 sssd-5266c7472ffb94504b8249310aee5c8a5511a922.zip |
PAM: Fix off-by-one-error in the SELinux session code
-rw-r--r-- | src/responder/pam/pamsrv_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/responder/pam/pamsrv_cmd.c b/src/responder/pam/pamsrv_cmd.c index e66debe2..006edcd3 100644 --- a/src/responder/pam/pamsrv_cmd.c +++ b/src/responder/pam/pamsrv_cmd.c @@ -494,7 +494,7 @@ static errno_t get_selinux_string(struct pam_auth_req *preq) } if (file_content) { - len = strlen(file_content); + len = strlen(file_content)+1; if (len > 0) { ret = pam_add_response(pd, SSS_PAM_SELINUX_MAP, len, (uint8_t *)file_content); |