diff options
author | Sumit Bose <sbose@redhat.com> | 2010-11-09 13:48:40 +0100 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-12-03 10:41:28 -0500 |
commit | 369983d509540d8289e62675c6cf7009f964abd7 (patch) | |
tree | 5d282bf8672e0a4cfecd6818c013489fc8196d89 /src/providers/krb5/krb5_child.c | |
parent | 308f7bc63467b7a5baf9a73fe1dbbd1c756dbdf5 (diff) | |
download | sssd-369983d509540d8289e62675c6cf7009f964abd7.tar.gz sssd-369983d509540d8289e62675c6cf7009f964abd7.tar.xz sssd-369983d509540d8289e62675c6cf7009f964abd7.zip |
Send authtok_type to krb5_child
Diffstat (limited to 'src/providers/krb5/krb5_child.c')
-rw-r--r-- | src/providers/krb5/krb5_child.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/providers/krb5/krb5_child.c b/src/providers/krb5/krb5_child.c index fda358944..5a5281a35 100644 --- a/src/providers/krb5/krb5_child.c +++ b/src/providers/krb5/krb5_child.c @@ -916,6 +916,7 @@ static errno_t unpack_buffer(uint8_t *buf, size_t size, struct pam_data *pd, if (kr->keytab == NULL) return ENOMEM; p += len; + SAFEALIGN_COPY_UINT32_CHECK(&pd->authtok_type, buf + p, size, &p); SAFEALIGN_COPY_UINT32_CHECK(&len, buf + p, size, &p); if ((p + len) > size) return EINVAL; pd->authtok = (uint8_t *)talloc_strndup(pd, (char *)(buf + p), len); @@ -930,6 +931,7 @@ static errno_t unpack_buffer(uint8_t *buf, size_t size, struct pam_data *pd, } if (pd->cmd == SSS_PAM_CHAUTHTOK) { + SAFEALIGN_COPY_UINT32_CHECK(&pd->newauthtok_type, buf + p, size, &p); SAFEALIGN_COPY_UINT32_CHECK(&len, buf + p, size, &p); if ((p + len) > size) return EINVAL; |