You don't check that ENGINE_new returned OK?