Blame SOURCES/0067-LDAP-read-the-correct-data-type-from-ldap_child-s-in.patch

905b4d
From 9524f859a730ef39852ecbba5638f26ab677cdd7 Mon Sep 17 00:00:00 2001
905b4d
From: Jakub Hrozek <jhrozek@redhat.com>
905b4d
Date: Sun, 19 Oct 2014 19:20:28 +0200
905b4d
Subject: [PATCH 67/71] LDAP: read the correct data type from ldap_child's
905b4d
 input buffer
905b4d
MIME-Version: 1.0
905b4d
Content-Type: text/plain; charset=UTF-8
905b4d
Content-Transfer-Encoding: 8bit
905b4d
905b4d
The back end wrote uint32_t, the ldap_child process would read int32_t.
905b4d
905b4d
Reviewed-by: Michal Židek <mzidek@redhat.com>
905b4d
---
905b4d
 src/providers/ldap/ldap_child.c | 4 ++--
905b4d
 1 file changed, 2 insertions(+), 2 deletions(-)
905b4d
905b4d
diff --git a/src/providers/ldap/ldap_child.c b/src/providers/ldap/ldap_child.c
905b4d
index b8b4b0ad7cfffc7db52b5ca3d9b9a74f12480070..e1abc9fd73f2ae95f0a0c28159589ebd36d2cf06 100644
905b4d
--- a/src/providers/ldap/ldap_child.c
905b4d
+++ b/src/providers/ldap/ldap_child.c
905b4d
@@ -96,8 +96,8 @@ static errno_t unpack_buffer(uint8_t *buf, size_t size,
905b4d
     }
905b4d
 
905b4d
     /* ticket lifetime */
905b4d
-    SAFEALIGN_COPY_INT32_CHECK(&ibuf->lifetime, buf + p, size, &p);
905b4d
-    DEBUG(SSSDBG_TRACE_LIBS, "lifetime: %d\n", ibuf->lifetime);
905b4d
+    SAFEALIGN_COPY_UINT32_CHECK(&ibuf->lifetime, buf + p, size, &p);
905b4d
+    DEBUG(SSSDBG_TRACE_LIBS, "lifetime: %u\n", ibuf->lifetime);
905b4d
 
905b4d
     return EOK;
905b4d
 }
905b4d
-- 
905b4d
1.9.3
905b4d