From 5a143df3ce24ec83ccf2131f2ffcfd8fe1885dc2 Mon Sep 17 00:00:00 2001 From: Ralf Haferkamp Date: Wed, 9 Jan 2008 13:28:09 +0000 Subject: [PATCH] Corrected memory allocation for cookie (ITS#5315) --- libraries/libldap/pagectrl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {