725bb2a enumeration: fix talloc context

2 files Authored by pbrezina 8 years ago, Committed by jhrozek 8 years ago,
    enumeration: fix talloc context
    
    If for some reason ptask fails (e.g. timeout), req is talloc freed
    but because subreq is attached to ectx which is permanent it is
    finished anyway. Then a crash occures when we are trying to access
    callback data.
    
    The same happens in sdap_dom_enum_ex_send.
    
    Resolves:
    https://fedorahosted.org/sssd/ticket/2611
    
    Reviewed-by: Pavel Reichl <preichl@redhat.com>