References have to be factually accurate and truthful. If one is unfair, misleading or blatantly untrue then legal action can be taken to claim damages.
I'm surprised that anybody would be dismissed on the basis of a bad reference - normally a job will be offered subject to the receipt of...