s4-resolve: fixed a crash bug on timeout
authorAndrew Tridgell <tridge@samba.org>
Sat, 19 Sep 2009 15:23:03 +0000 (08:23 -0700)
committerAndrew Tridgell <tridge@samba.org>
Sat, 19 Sep 2009 15:23:03 +0000 (08:23 -0700)
commit92786aebf1b8aa17612ebaf5dd0ee8cd4abf9616
treefdb5fc1bc3ed91981f045d9fed508ccd96bdc65d
parent7c542406b192cd72c40778850d92771974d6466c
s4-resolve: fixed a crash bug on timeout

We were creating the name resolution context as a child of lp_ctx,
which meant when we gave up on a connection the timer on name
resolution kept running, and when it timed out the callback crashed as
the socket was already removed.
source4/lib/socket/connect_multi.c
source4/libcli/finddcs.c
source4/libcli/resolve/resolve.c
source4/libcli/smb2/connect.c
source4/libcli/smb_composite/connect.c
source4/libnet/libnet_lookup.c
source4/librpc/rpc/dcerpc_sock.c
source4/nbt_server/wins/wins_dns_proxy.c
source4/winbind/wb_dom_info_trusted.c