Defendants J. M. Campbell and wife, Bertha, gave to plaintiff in 1919 a $13,000 purchase-money first mortgage on real estate in Miner county. January 3, 1921, they gave to defendant First State Bank of Fulton a second mortgage upon the same premises, which recited that it was subject to a prior mortgage to plaintiff in the principal sum of $13,000. October 8, 1921, default existing under the terms of plaintiff’s mortgage, and plaintiff being ignorant of the existence of subsequent mortgages, defendants Campbell and wife gave to plaintiff a warranty deed of the mortgaged premises, which deed recited that it was given for the satisfaction of the $13,000 mortgage. Plaintiff surrendered to them the $13,000 mortgage with the note and interest coupons thereby secured. The warranty deed was not recorded, nor was the mortgage satisfied of record. O-n the same day plaintiff and defendant Campbell entered' into a written agreement, reciting the delivery of the warranty deed and the surrender of the $13,000 note, and provided that the deeded premises might be “redeemed” at any time within one year by making certain payments specified in detail in the contract.
On November 12, 1921, plaintiff first learned of the existence of other mortgages. Pie went immediately to the defendant Camp*287bell, secured from him the $13,000 note, interest coupons, and mortgage, returned to him the warrant}' deed of October 8, 192Í, and both parties signed the following writing indorsed on the written agreement of October 8, 1921:
“'For and in consideration of the sum of $1 and other good and valuable consideration, the within contract is hereby mutually rescinded and the consideration received by each of the contracting parties under the same is to be returned to the other party and each of the said parties is hereby restored to the status which he had prior to the execution of said contract. Dated this 12th day of November, 1921.”
Plaintiff thereupon instituted the present action for foreclosure of the $13,000 mortgage having been enjoined from an attempted foreclosure by advertisement.
The complaint is in the usual form for foreclosure. The answer of the defendant State Bank of Fulton is denominated “Answer and Counterclaim,” but asks for no affirmative relief and contains no counterclaim. The answer alleges that on October 8, 1921, plaintiff accepted and received a warranty deed of the premises in full satisfaction of his mortgage. The answer also sets up the mortgage of the defendant Fulton Bank, and alleges that the same is in full force and effect and the indebtedness thereby secured unpaid, but does not ask for foreclosure thereof or that its mortgage be adjudged prior to plaintiff’s mortgage; the prayer of the answer being that the complaint be dismissed on the merits, and that the defendant Fulton Bank have judgment for costs. To this answer the plaintiff, voluntarily and without order of court interposed a reply consisting of a general denial.
The trial court found plaintiff’s mortgage to be a first lien on the premises and decreed foreclosure. From this judgment the defendant First State Bank of Fulton appeals.
Appellant assigns errors in support of two principal contentions, which are: First, that respondent, having interposed a general denial by way of reply was limited thereby, and should not have been permitted to offer proof in avoidance of the answer by showing a subsequent rescission of the transactions of October 8th, set up by the answer as a defense; second, that the proceedings of October 8, 1921, between respondent and *288defendant Campbell operated to discharge respondent’s mortgage, and that the same could not thereafter be revived or reinstated as against appellant by the surrender of the warranty deed, the return of the note and mortgage, and the effort on November 12th to restore the parties to> their original status.
We are of the opinion that appellant’s first contention is not well founded. The answer contained no new matter constituting a counterclaim. Respondent need not have replied, and indeed should not have replied, except in the event of an order of court on a motion by appellant. Rev. Code 1919, § 2357. The voluntary reply filed by respondent was entirely superfluous. Under the decisions of this court its only effect would be to bind respondent by any admission against interest therein contained. Gull R. Lbr. Co. v. Keefe, 6 Dak. 160, 41 N. W. 743; Johnson et al v. Butler et al, 41 S. D. 236, 170 N. W. 140. If no reply had been filed, respondent would have been entitled to submit any relevant proof either in denial or avoidance of the material allegations of appellant’s answer. The filing of the voluntary reply did not limit respondent in his proof either by way -of denial or avoidance, so long as the offered proof did not controvert admissions of the reply.
Neither is there merit in appellant’s second contention. The record fails to disclose that appellant changed its position in any way or was prejudiced in the slightest degree by reason of ácts of respondent and defendant Campbell in connection with the surrender and reinstatement of the first mortgage. In fact it does not even appear that appellant had any knowledge whatever of . these transactions between respondent and defendant Campbell until they were entirely completed and respondent began foreclosure proceedings. Manifestly appellant did not rely there on taits harm. Under these circumstances, in the absence of any injury or prejudice to appellant, it would be a harsh rule indeed that would deprive respondent of the priority of his security. The rule applicable to the facts of this case is well stated by the North Dakota court in Strehlow v. Fee, 36 N. D. 59, 161 N. W. 719, as follows:
“The rule of law, indeed, is well established that where an instrument has been surrendered or discharged, or an incumbrance or charge has 'been satisfied through mistake, the party making *289the same is entitled to be replaced in his original position, provided only that other creditors have not been induced by the action of the plaintiff or petitioner to change their position, and have not lost any substantial and material rights by such action.”
The soundness of this principle has been several times recognized by this court, though perhaps not in application to an identical state of facts. See Home Inv. Co. v. Clarson, 21 S. D. 72, 109 N. W. 507; Ricker v. Stott, 13 S. D. 208, 83 N. W. 47; Upton v. Hugos, 7 S. D. 476, 64 N. W. 523.
The judgment of the trial court is affirmed.