e18d5c7 AUTOFS: terminate array after the last entry

1 file Authored by lslebodn 6 years ago, Committed by jhrozek 6 years ago,
    AUTOFS: terminate array after the last entry
    
    If LDAP entries have more then one attribute "automountKey"
    automount map will be skipped and error message will be printed to log files
    and sssd_be will crash.
        DEBUG(SSSDBG_MINOR_FAILURE, "Malformed entry, skipping\n");
    
    The output array with automount maps will contain uninitialized pointers
    because array was terminated after the expected count of entries and not
    after the last successfully retrieved entry
    
    Resolves:
    https://fedorahosted.org/sssd/ticket/2288
    
    Reviewed-by: Pavel Březina <pbrezina@redhat.com>