In addition to the common law theories mentioned by others (which are looking at the potential liability of the prospective employer), Labor Code Section 1050 makes it illegal for a former employer to make a misrepresentation to a prospective employer. It's unlikely that the prospective employer will tell you what the former employer said. Consider using one of the reference check services, either with or without the guidance of an attorney.