0060992 dyndns: Fix talloc hierarchy of "struct sss_iface_addr"

1 file Authored by lslebodn 9 years ago, Committed by jhrozek 9 years ago,
    dyndns: Fix talloc hierarchy of "struct sss_iface_addr"
    
    Structure "struct sdap_dyndns_update_state" has two linked lists of
    structures "struct sss_iface_addr": addresses, dns_addrlist
    
    In *_recv functions, linked list was talloc stealed
    to structure sss_iface_addr, but just 1st member was moved to "state" talloc
    context. Other member of link list were freed with removing subrequest,
    which caused use after free problem.
    
    Resolves:
    https://fedorahosted.org/sssd/ticket/2405
    
    Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
    
        
file modified
+9 -0