Moved packet length sanity check until after we've derived the expected tag length based on the session context.  This resolves the compiler warning due to tag_len being used uninitialized.