mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Corrected memory allocation for cookie (ITS#5315)
This commit is contained in:
parent
f63ec3f497
commit
5a143df3ce
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user