Corrected memory allocation for cookie (ITS#5315)

This commit is contained in:
Ralf Haferkamp 2008-01-09 13:28:09 +00:00
parent f63ec3f497
commit 5a143df3ce

View File

@ -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 {