[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: referral problem
Good catch. I've applied a fix.
Kurt
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.
>
>Index: result.c
>===================================================================
>RCS file: /repo/OpenLDAP/pkg/ldap/servers/slapd/result.c,v
>retrieving revision 1.82
>diff -r1.82 result.c
>147c147
>< refs = ch_malloc( i + 1 );
>---
>> refs = ber_memcalloc( (i + 1), sizeof(struct berval*) );
>
>