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

Re: Possible bug in ldap_get_values_len?

Hello Howard,

Thank you for your analysis.  In this case, I suggest that a note that
a NULL may be returned by OpenLDAP by ldap_get_values and ldap_get_values_len,
so that programmers are advised they need to special case this non-error

--- ldap_get_values.3   2010-04-13 21:22:39.000000000 +0100
+++ ldap_get_values.3.new       2010-10-18 15:32:49.000000000 +0100
@@ -54,7 +54,9 @@
 .B ldap_get_values()
 takes the \fIentry\fP and the attribute \fIattr\fP
 whose values are desired and returns a NULL-terminated array of the
-attribute's values.  \fIattr\fP may be an attribute type as returned
+attribute's values.  If there are no values to be returned, NULL
+may be returned instead (NULL may also indicate an error condition,
+see below.)  \fIattr\fP may be an attribute type as returned
 .BR ldap_first_attribute (3)