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

Re: More type problems and return values in the C API



Hallvard B Furuseth wrote:
> ...
> 
> >    ldap_msgfree() frees the result structure pointed to by res and
> >    returns the type of the message it freed.  If res is NULL, nothing
> >    is done and the value zero is returned.
> 
> However, it doesn't say which message's type is returned if it frees a
> chain of messages (2nd paragraph in section 12).  Or have all messages
> in a chain the same type?

No, they do not necessarily have the same type (a chain returned by a
search operation might contain entries, references, and a result, for
example).  I will change the text to read:

   ldap_msgfree() frees each message in the result chain
   pointed to by res and returns the type of the last message
   in the chain.  If res is NULL, nothing is done and the
   value zero is returned.

-- 
Mark Smith
iPlanet Directory Architect / Sun-Netscape Alliance
My words are my own, not my employer's.   Got LDAP?