[Date Prev][Date Next] [Chronological] [Thread] [Top]

referral problem

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
<       refs = ch_malloc( i + 1 );
>       refs = ber_memcalloc( (i + 1), sizeof(struct berval*) );