From: Luke Howard Date: Tue, 6 Sep 2011 10:23:56 +0000 (+0100) Subject: Update assert to reflect protected subtoken length X-Git-Tag: tr-beta1~131 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=moonshot.git;a=commitdiff_plain;h=32d72c1893b7d3e90c73dd2ce8bc8e99d30cc15d Update assert to reflect protected subtoken length --- diff --git a/moonshot/mech_eap/util_context.c b/moonshot/mech_eap/util_context.c index 8ed7494..828e218 100644 --- a/moonshot/mech_eap/util_context.c +++ b/moonshot/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;