From 5eef3da14cb34e4cb6356f0b291c066db946f936 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Sun, 19 Oct 2014 19:20:28 +0200 Subject: LDAP: read the correct data type from ldap_child's input buffer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The back end wrote uint32_t, the ldap_child process would read int32_t. Reviewed-by: Michal Židek --- src/providers/ldap/ldap_child.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/providers/ldap') 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; } -- cgit