https://bugs.openldap.org/show_bug.cgi?id=10563
Erwin Hoffmann feh@fehcom.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|INVALID |FIXED
--- Comment #2 from Erwin Hoffmann feh@fehcom.de --- Hi Hu,
how to differentiate an 'empty' message given return 1 and a message with content giving return 1 as well?
Following this test - and getting a '1' - I do the standard loop to get a message with 'ldap_first_message' and 'ldap_next_message.
This core dumps with content '0'; thus the above default solution given, makes no sense to me.
In particular the man ldap_message_count says:
"A count of the number of messages in the result chain can be obtained by calling ldap_count_messages(). "
This is very counter-intuitive.
Regards. --eh.