From: Luke Howard Date: Tue, 6 Sep 2011 10:23:56 +0000 (+0100) Subject: Update assert to reflect protected subtoken length X-Git-Url: http://www.project-moonshot.org/gitweb/?p=mech_eap.orig;a=commitdiff_plain;h=2b1385bc91ff5e797297b56184f56b5637f6a615 Update assert to reflect protected subtoken length --- diff --git a/mech_eap/util_context.c b/mech_eap/util_context.c index 8ed7494..828e218 100644 --- a/mech_eap/util_context.c +++ b/mech_eap/util_context.c @@ -317,7 +317,7 @@ gssEapMakeOrVerifyTokenMIC(OM_uint32 *minor, if (verifyMIC) { assert(tokenMIC->length >= 16); - assert(i < 2 + (2 * tokens->buffers.count)); + assert(i < 2 + (3 * tokens->buffers.count)); iov[i].type = GSS_IOV_BUFFER_TYPE_HEADER; iov[i].buffer.length = 16;