diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2014-10-19 19:20:28 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2014-10-29 10:55:11 +0100 |
commit | c3209dd39a117898541285fe0c891f0d4b676598 (patch) | |
tree | 65d2ac1344cf9ad55cc0b3e21ae8157dfd1a59e1 | |
parent | c358c62cd0734331a6787925a7ee134cc803f038 (diff) | |
download | sssd-c3209dd39a117898541285fe0c891f0d4b676598.tar.gz sssd-c3209dd39a117898541285fe0c891f0d4b676598.tar.xz sssd-c3209dd39a117898541285fe0c891f0d4b676598.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.
-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 faa6f027b..db38cad59 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; } |