Update assert to reflect protected subtoken length
authorLuke Howard <lukeh@padl.com>
Tue, 6 Sep 2011 10:23:56 +0000 (11:23 +0100)
committerLuke Howard <lukeh@padl.com>
Tue, 6 Sep 2011 10:23:56 +0000 (11:23 +0100)
mech_eap/util_context.c

index 8ed7494..828e218 100644 (file)
@@ -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;