When the nullity arises from the illegality of the consideration or the object of the contract, if the fact constitutes a crime or misdemeanor common to both contracting parties, they shall have no action against each other and proceedings shall be instituted against them, and, furthermore, the things or sum which may have been the object of the contract shall be applied as prescribed in Title 33, the Penal Code with regard to the goods or instruments of the crime or misdemeanor.
This provision is applicable to the case in which there is a crime or misdemeanor on the part of only one of the contracting parties; but the one who is not guilty may recover what he may have given, and shall not be bound to fulfill what he may have promised.
History —Civil Code, 1930, § 1257.