On the existence of a connection with curvature zero