>From 363ff88add3eaed24808fe2eb9e38a066dd9a5f5 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Sun, 19 Oct 2014 19:20:28 +0200 Subject: [PATCH 3/4] 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. --- src/providers/ldap/ldap_child.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/providers/ldap/ldap_child.c b/src/providers/ldap/ldap_child.c index faa6f027ba52f55985c63e8055292e616b5bb6bf..db38cad59fe9eb1f28f78d27c2a2c260075060d1 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; } -- 1.9.3