Reentrant phase transition in a ternary mixture: A study of the shape of its critical line