From 669029d224f9425084944bc541e8b6b9509896f6 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Sun, 27 Aug 2000 03:49:32 +0000 Subject: [PATCH] (gss_accept_sec_context): gssapi_krb5_encapsulate does not free. adapt. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8999 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/gssapi/accept_sec_context.c | 2 +- lib/gssapi/krb5/accept_sec_context.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/gssapi/accept_sec_context.c b/lib/gssapi/accept_sec_context.c index b335f2211..512aecc36 100644 --- a/lib/gssapi/accept_sec_context.c +++ b/lib/gssapi/accept_sec_context.c @@ -321,13 +321,13 @@ end_fwd: &(*context_handle)->auth_context, &outbuf); if (kret) { - krb5_data_free (&outbuf); ret = GSS_S_FAILURE; goto failure; } ret = gssapi_krb5_encapsulate (&outbuf, output_token, "\x02\x00"); + krb5_data_free (&outbuf); if (ret) { kret = 0; goto failure; diff --git a/lib/gssapi/krb5/accept_sec_context.c b/lib/gssapi/krb5/accept_sec_context.c index b335f2211..512aecc36 100644 --- a/lib/gssapi/krb5/accept_sec_context.c +++ b/lib/gssapi/krb5/accept_sec_context.c @@ -321,13 +321,13 @@ end_fwd: &(*context_handle)->auth_context, &outbuf); if (kret) { - krb5_data_free (&outbuf); ret = GSS_S_FAILURE; goto failure; } ret = gssapi_krb5_encapsulate (&outbuf, output_token, "\x02\x00"); + krb5_data_free (&outbuf); if (ret) { kret = 0; goto failure;