tid_req_free: delete GSS context
authorSam Hartman <hartmans@debian.org>
Mon, 23 Feb 2015 16:58:14 +0000 (11:58 -0500)
committerSam Hartman <hartmans@debian.org>
Mon, 23 Feb 2015 16:58:14 +0000 (11:58 -0500)
Free the gss context in a TID request.

tid/tid_req.c

index 23599ad..7bf33dd 100644 (file)
 
 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;
 }