]> git.sur5r.net Git - openldap/commitdiff
Corrected memory allocation for cookie (ITS#5315)
authorRalf Haferkamp <ralf@openldap.org>
Wed, 9 Jan 2008 13:28:09 +0000 (13:28 +0000)
committerRalf Haferkamp <ralf@openldap.org>
Wed, 9 Jan 2008 13:28:09 +0000 (13:28 +0000)
libraries/libldap/pagectrl.c

index bd23017ab32557532e4a28b7c0f864b91158d71f..8aac0c892a4ee644b9a7b1896574e5fa1d9a68ee 100644 (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 {