03f85ec Ticket #47859 - Coverity: 12692 & 12717

Authored and Committed by nhosoi 9 years ago
    Ticket #47859 - Coverity: 12692 & 12717
    
    12717 - Resource leak - servers/plugins/uiduniq/uid.c
    Description: In uniqueness_entry_to_config, the return value of
    slapi_ch_calloc was checked if it was NULL or not.  If NULL, the
    function returned without releasing values. This patch remove the
    NULL check and error return since the 2 arguments (i + 1, sizeof
    (Slapi_DN *)) never be 0 or negative, thus slapi_ch_calloc has no
    chance to return NULL.  If allocation fails, it exits there.
    Note: introduced by commit c66b5e9f83a81d75d8137e86b5e7631507592099
          (ticket #47823)
    
    https://fedorahosted.org/389/ticket/47859
    
    Reviewed by rmeggins@redhat.com (Thank you, Rich!!)