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

RE: ldapsearch w/ SASL sends duplicate entries (ITS#3139)

> -----Original Message-----
> From: owner-openldap-bugs@OpenLDAP.org
> [mailto:owner-openldap-bugs@OpenLDAP.org]On Behalf Of adamson@cmu.edu

> My only concern is if this leaks the buf_out.buf_base memory block
> that was allocated in the sasl_encode(). This would be for
> SASL V2 only.
> Another possible fix would be to set
>    p->buf_out.buf_ptr = p->buf_out.buf_end

I chose this fix. There is no buffer leak here since SASLv2 just realloc's
the same buffer over and over (and maintains its address internally in the
SASL connection state).

This change is now committed in HEAD, please test. Thanks.

  -- Howard Chu
  Chief Architect, Symas Corp.       Director, Highland Sun
  http://www.symas.com               http://highlandsun.com/hyc
  Symas: Premier OpenSource Development and Support