https://bugs.openldap.org/show_bug.cgi?id=9828
--- Comment #3 from Howard Chu hyc@openldap.org --- For reference, count_values_len expects an array of pointers to struct berval, as returned by get_values_len. Not a pointer to an array of struct berval.