From 24ed2fa8bba7e117b51c2c4b8b97ea5b70c76d13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Wed, 21 May 2003 15:05:49 +0000 Subject: [PATCH] (gss_adat): remove poking inside the delegated handle, also fixes problem where to much memory was allocated git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12321 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/ftp/ftp/gssapi.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/appl/ftp/ftp/gssapi.c b/appl/ftp/ftp/gssapi.c index 191743540..76c1a33e3 100644 --- a/appl/ftp/ftp/gssapi.c +++ b/appl/ftp/ftp/gssapi.c @@ -52,7 +52,7 @@ gss_init(void *app_data) { struct gss_data *d = app_data; d->context_hdl = GSS_C_NO_CONTEXT; - d->delegated_cred_handle = NULL; + d->delegated_cred_handle = GSS_C_NO_CREDENTIAL; #if defined(FTP_SERVER) return 0; #else @@ -184,15 +184,6 @@ gss_adat(void *app_data, void *buf, size_t len) input_token.value = buf; input_token.length = len; - d->delegated_cred_handle = malloc(sizeof(*d->delegated_cred_handle)); - if (d->delegated_cred_handle == NULL) { - reply(500, "Out of memory"); - goto out; - } - - memset ((char*)d->delegated_cred_handle, 0, - sizeof(*d->delegated_cred_handle)); - maj_stat = gss_accept_sec_context (&min_stat, &d->context_hdl, GSS_C_NO_CREDENTIAL,