From 2f58faadfe1e401a32024cc144c8a406cb69fc28 Mon Sep 17 00:00:00 2001 From: Quanah Gibson-Mount Date: Mon, 11 Feb 2008 23:47:03 +0000 Subject: [PATCH] ITS#5315 --- CHANGES | 1 + libraries/libldap/pagectrl.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index da77cf5aba..04efe554a7 100644 --- a/CHANGES +++ b/CHANGES @@ -6,6 +6,7 @@ OpenLDAP 2.4.8 Engineering Fixed libldap filter abort (ITS#5300) Fixed libldap ldap_parse_sasl_bind_result (ITS#5263) Fixed libldap search timeout crash (ITS#5291) + Fixed libldap paged results crash (ITS#5315) Fixed ldapdelete with sizelimit (ITS#5294) Fixed slapd idlcache on adds (ITS#5086) Fixed slapd include handling (ITS#5276) diff --git a/libraries/libldap/pagectrl.c b/libraries/libldap/pagectrl.c index 93222406b1..3ea8f298ad 100644 --- a/libraries/libldap/pagectrl.c +++ b/libraries/libldap/pagectrl.c @@ -256,7 +256,7 @@ ldap_parse_page_control( ld->ld_errno = ldap_parse_pageresponse_control( ld, c, countp, &cookie ); if ( ld->ld_errno == LDAP_SUCCESS ) { - *cookiep = LDAP_MALLOC( sizeof( struct berval * ) ); + *cookiep = LDAP_MALLOC( sizeof( struct berval ) ); if ( *cookiep == NULL ) { ld->ld_errno = LDAP_NO_MEMORY; } else { -- 2.39.5