[Date Prev][Date Next]
Re: referral problem
Good catch. I've applied a fix.
At 10:52 AM 3/8/00 -0500, Gary Williams wrote:
>I was getting a memory error when I performed a search
>that returned a referral. The problem seemed to be that
>the routine was only allocating one byte per referral,
>instead of one pointer's worth of memory per referral.
>I made the change indicated below and it seems to have
>fixed the problem.
>RCS file: /repo/OpenLDAP/pkg/ldap/servers/slapd/result.c,v
>retrieving revision 1.82
>diff -r1.82 result.c
>< refs = ch_malloc( i + 1 );
>> refs = ber_memcalloc( (i + 1), sizeof(struct berval*) );