Connection clean up
authorSam Hartman <hartmans@debian.org>
Wed, 11 Mar 2015 14:15:59 +0000 (10:15 -0400)
committerSam Hartman <hartmans@debian.org>
Wed, 11 Mar 2015 14:15:59 +0000 (10:15 -0400)
commit7d59da0c160c7b4b288fbbfb5c2c1d17049372c5
treebe8f660c98409202a869ce810e9de16045a7c3f2
parentc954e07d667f64b96777faec6ea2e7d424e599dd
Connection clean up

We need to clean up the connection file descriptor and the gss context.

* tidc_fwd_request is the wrong place to free the TID_REQ because it does not allocate it

* tid_req_dup needs to use talloc; duplicated requests are freed by
  the original request

* tidc_send_message frees its request

* The request destructor closes the connection.

* Keep track of whether a request is duplicated; only free the connection and gss context in the original request.
include/tid_internal.h
tid/tid_req.c
tid/tidc.c
tr/tr_main.c