From: Quanah Gibson-Mount Date: Mon, 11 Feb 2008 23:47:03 +0000 (+0000) Subject: ITS#5315 X-Git-Tag: OPENLDAP_REL_ENG_2_4_8~69 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2f58faadfe1e401a32024cc144c8a406cb69fc28;p=openldap ITS#5315 --- 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 {