summaryrefslogtreecommitdiff
path: root/src/responder/pam
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-07-18 20:35:45 +0200
committerStephen Gallagher <sgallagh@redhat.com>2012-07-18 15:10:38 -0400
commit5266c7472ffb94504b8249310aee5c8a5511a922 (patch)
tree95641bdeeaff133711e7b311df852078da87e248 /src/responder/pam
parente82832a64fd456d1541ce0ea3902bcfb05e69642 (diff)
downloadsssd-5266c7472ffb94504b8249310aee5c8a5511a922.tar.gz
sssd-5266c7472ffb94504b8249310aee5c8a5511a922.tar.bz2
sssd-5266c7472ffb94504b8249310aee5c8a5511a922.zip
PAM: Fix off-by-one-error in the SELinux session code
Diffstat (limited to 'src/responder/pam')
-rw-r--r--src/responder/pam/pamsrv_cmd.c2
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);