From: Ralf Haferkamp Date: Wed, 9 Jan 2008 13:28:09 +0000 (+0000) Subject: Corrected memory allocation for cookie (ITS#5315) X-Git-Tag: OPENLDAP_REL_ENG_2_4_9~20^2~234 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5a143df3ce24ec83ccf2131f2ffcfd8fe1885dc2;p=openldap Corrected memory allocation for cookie (ITS#5315) --- diff --git a/libraries/libldap/pagectrl.c b/libraries/libldap/pagectrl.c index bd23017ab3..8aac0c892a 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 {