From: Luke Howard Date: Mon, 11 Oct 2010 13:00:14 +0000 (+0200) Subject: initialise output token, cleanup X-Git-Tag: vm/20110310~137 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=mech_eap.orig;a=commitdiff_plain;h=b52b8403f74ea7f833fb1766fb5d05af411209e3 initialise output token, cleanup --- 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