diff options
author | Andrew Tridgell <tridge@samba.org> | 2009-09-19 08:23:03 -0700 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2009-09-19 08:23:03 -0700 |
commit | 92786aebf1b8aa17612ebaf5dd0ee8cd4abf9616 (patch) | |
tree | fdb5fc1bc3ed91981f045d9fed508ccd96bdc65d /source4/librpc | |
parent | 7c542406b192cd72c40778850d92771974d6466c (diff) | |
download | samba-92786aebf1b8aa17612ebaf5dd0ee8cd4abf9616.tar.gz samba-92786aebf1b8aa17612ebaf5dd0ee8cd4abf9616.tar.bz2 samba-92786aebf1b8aa17612ebaf5dd0ee8cd4abf9616.zip |
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.
Diffstat (limited to 'source4/librpc')
-rw-r--r-- | source4/librpc/rpc/dcerpc_sock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/librpc/rpc/dcerpc_sock.c b/source4/librpc/rpc/dcerpc_sock.c index 64a5b92e90..d8bd6d2938 100644 --- a/source4/librpc/rpc/dcerpc_sock.c +++ b/source4/librpc/rpc/dcerpc_sock.c @@ -488,7 +488,7 @@ struct composite_context* dcerpc_pipe_open_tcp_send(struct dcerpc_connection *co s->resolve_ctx = resolve_ctx; make_nbt_name_server(&name, server); - resolve_req = resolve_name_send(resolve_ctx, &name, c->event_ctx); + resolve_req = resolve_name_send(resolve_ctx, s, &name, c->event_ctx); composite_continue(c, resolve_req, continue_ip_resolve_name, c); return c; } |