From b52b8403f74ea7f833fb1766fb5d05af411209e3 Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Mon, 11 Oct 2010 15:00:14 +0200 Subject: [PATCH] initialise output token, cleanup --- accept_sec_context.c | 3 +++ gssapi_eap.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/accept_sec_context.c b/accept_sec_context.c index 4a0fe01..bac6523 100644 --- a/accept_sec_context.c +++ b/accept_sec_context.c @@ -418,6 +418,9 @@ eapGssSmAcceptExtensionsReq(OM_uint32 *minor, if (GSS_ERROR(major)) return major; + outputToken->length = 0; + outputToken->value = NULL; + ctx->state = EAP_STATE_EXTENSIONS_RESP; return GSS_S_CONTINUE_NEEDED; diff --git a/gssapi_eap.h b/gssapi_eap.h index e5e50e1..89923a4 100644 --- a/gssapi_eap.h +++ b/gssapi_eap.h @@ -51,7 +51,7 @@ extern gss_OID GSS_EAP_CRED_SET_RADIUS_CONFIG_FILE; extern gss_OID GSS_EAP_CRED_SET_RADIUS_CONFIG_STANZA; /* flags in NBO followed by an optional boolean octet that - * specifies that the specified flags should be cleared */ + * specifies if the specified flags should be cleared */ extern gss_OID GSS_EAP_CRED_SET_CRED_FLAG; #define GSS_EAP_DISABLE_LOCAL_ATTRS_FLAG 0x00000001 -- 2.1.4