In an answer, the defendant may assert any defense which the defendant may have to the collection of the taxes. If the defendant claims the taxes to be void, the court shall ascertain the correct amount of taxes due from the person for the year or years it is claimed the taxes are delinquent. If, in the court's opinion, the assessment or any subsequent proceeding is void or is voidable by the omission or commission of any act required or prohibited, the court shall reassess the property or order the property to be reassessed by the director of equalization acting at the time of the order. The court shall render judgment for the correct amount of taxes due from the defendant for that year or years.
SDCL 10-22-57