ldap_control_free and ldap_controls_free both contain an assert if the argument is NULL. <draft-ietf-ldapext-ldap-c-api-04.txt> states that NULL is valid and the routine should become a NOP. The asserts should be removed.