diff options
-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); |