initialise output token, cleanup
authorLuke Howard <lukeh@padl.com>
Mon, 11 Oct 2010 13:00:14 +0000 (15:00 +0200)
committerLuke Howard <lukeh@padl.com>
Mon, 11 Oct 2010 13:00:14 +0000 (15:00 +0200)
accept_sec_context.c
gssapi_eap.h

index 4a0fe01..bac6523 100644 (file)
@@ -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;
index e5e50e1..89923a4 100644 (file)
@@ -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