a76d440 Topology plugins sigsev/heap corruption when adding a managed host

1 file Authored by root 7 years ago, Committed by mbasti 7 years ago,
    Topology plugins sigsev/heap corruption when adding a managed host
    
    A managed host may handle several ipaReplTopoManagedSuffix.
    Removing (from the topology) such host, loops over the replicated
    suffixes array to retrieve, in the hosts list, the host record and delete it.
    The problem is that a variable used to manage a hosts list is not reset
    when looking at the next suffix. That will messup the lists, keeping
    freed elements in the lists.
    
    The fix is to reset the variable inside the replicated suffix loop
    
    https://fedorahosted.org/freeipa/ticket/5977
    
    Reviewed-By: Ludwig Krispenz <lkrispen@redhat.com>