From: Sam Hartman Date: Mon, 23 Feb 2015 16:58:14 +0000 (-0500) Subject: tid_req_free: delete GSS context X-Git-Tag: 1.5~25 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=trust_router.git;a=commitdiff_plain;h=03837be53e03aed3a08220d8f6f773dd836fcc4a tid_req_free: delete GSS context Free the gss context in a TID request. --- diff --git a/tid/tid_req.c b/tid/tid_req.c index 23599ad..7bf33dd 100644 --- a/tid/tid_req.c +++ b/tid/tid_req.c @@ -42,8 +42,11 @@ static int destroy_tid_req(TID_REQ *req) { + OM_uint32 minor; if (req->json_references) json_decref(req->json_references); + if (req->gssctx) + gss_delete_sec_context( &minor, &req->gssctx, NULL); return 0; }