diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2014-10-19 19:20:28 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2014-11-05 19:54:58 +0100 |
commit | 5eef3da14cb34e4cb6356f0b291c066db946f936 (patch) | |
tree | 92d4f4bc951762adab9bb0fd77e3445ecabc08e2 /src | |
parent | 0348c74bad010d35f92400c749a7acc2fea8b2cb (diff) | |
download | sssd-5eef3da14cb34e4cb6356f0b291c066db946f936.tar.gz sssd-5eef3da14cb34e4cb6356f0b291c066db946f936.tar.xz sssd-5eef3da14cb34e4cb6356f0b291c066db946f936.zip |
LDAP: read the correct data type from ldap_child's input buffer
The back end wrote uint32_t, the ldap_child process would read int32_t.
Reviewed-by: Michal Židek <mzidek@redhat.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/providers/ldap/ldap_child.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/providers/ldap/ldap_child.c b/src/providers/ldap/ldap_child.c index b8b4b0ad7..e1abc9fd7 100644 --- a/src/providers/ldap/ldap_child.c +++ b/src/providers/ldap/ldap_child.c @@ -96,8 +96,8 @@ static errno_t unpack_buffer(uint8_t *buf, size_t size, } /* ticket lifetime */ - SAFEALIGN_COPY_INT32_CHECK(&ibuf->lifetime, buf + p, size, &p); - DEBUG(SSSDBG_TRACE_LIBS, "lifetime: %d\n", ibuf->lifetime); + SAFEALIGN_COPY_UINT32_CHECK(&ibuf->lifetime, buf + p, size, &p); + DEBUG(SSSDBG_TRACE_LIBS, "lifetime: %u\n", ibuf->lifetime); return EOK; } |