As between the mortgagor, who is the plaintiff in this action, and the defendant Miller, her grantee, by assuming the payment of the mortgage by his agreement contained in the deed of conveyance to him, became the primary debtor and the plaintiff his surety. (Calvo v. Davies, 73 N. Y. 211; Johnson v. Zink, 51 id. 336; Marshall v. Davies, 78 id. 421; Mutual Life Insurance Co. v. Davies, 12 J. & S. 172; Blyer v. Monholland, 2 Sandf. Ch. 478.)
In Trotter v. Hughes (12 N. Y. 74) the head note is as follows : “ The acceptance of a deed of mortgaged premises containing a, provision that the grantee is to pay the mortgage, binds him as-effectually as though he had signed the deed.
“ A party who accepts from a person liable to pay a debt secured by a mortgage a conveyance of the mortgaged premises, by the terms of which he agrees to pay the debt, is liable to the holder of the mortgage for any deficiency which remains after the application of the proceeds of the premises to the satisfaction of the debt.”
It is equally well settled that by the acceptance of the conveyance to him from the defendant Miller, the defendant Oldfield became liable to the mortgagee and also to the mortgagor, for any deficiency which might arise upon the sale of the mortgaged premises. (Ferris v. Crawford, 2 Den. 595.)
The rule is stated in Wiltsie on Mortgage Foreclosure, section 232, as follows: “ It may be stated as the general rule that all intermediate purchasers who have in succession from the original obligor through mesne conveyances assumed the payment of a bond and mortgage, are personally liable as sureties for a judgment of deficiency in an action to foreclose the mortgage, brought by the mortgagee -or his assigns.” (Mutual Life Insurance Co. v. Davies supra.)
The mortgagee Bird, when his mortgage became due and payable, had a right to commence an action to foreclose the same, - and to-mate all persons parties who had, subsequent to the date of record of his mortgage, acquired any interest in the premises, and to recover judgment for deficiency against this plaintiff, the mortgagor, against, her grantee, the defendant Miller, against Miller’s grantee, Oldfield,, and against Oldfield’s grantee, Elizabeth Bennett.
Bird also had the right to demand and to recover judgment for *400deficiency against any one of such parties, and the action of Bird in that regard could in no way affect the rights of such parties as between themselves. If judgment for deficiency had only been demanded and recovered against the plaintiff in this action she could not have complained, but would have had the right immediately to commence an action against Miller to recover the amount paid by her upon such judgment.
If the plaintiff in that action had recovered judgment for deficiency •against Miller, he in 'turn could have recovered the amount thereof f-rom Oldfield, and so Oldfield. could recover from Elizabeth Bennett. So far as Bird was concerned, each of the defendants in the action above named was jointly and severally liable to him,, and it was entirely optional with him whether he would pursue them all, or, if any, which one or more he would seek to recover against.
The rule is well settled that a surety such as was the plaintiff in in this case is discharged, from liability to the creditor if he, without the knowledge of the surety, in any way changes or modifies the. •obligation of the principal debtor, or makes any agreement, by which such obligation cannot be enforced, or even if he grants an extern sion of time for the performance of such obligation. (Calvo v. Davies, supra; Paine v. Jones, 76 N. Y. 274; Spencer v. Spencer, 95 id. 353.)
The' contention of the appellants is that the effect of the stipulation made by Bird’s attorney in the foreclosure action was to discharge the obligation of Miller and Oldfield to pay the mortgage; in effect, that they having been made parties to- the foreclosure •action were' bound to plead any defense which they had, and that having withdrawn such defense upon condition that the plaintiff Bird would not enter judgment for deficiency against them, they waived their defenses respectively, and he, Bird, waived- his right to recover any judgment, for deficiency against them in that action, and that he never after could recover such judgment in any action which he might afterwards bring.
Assuming, but without deciding, that such was the effect of the stipulation as between Bird and the defendants Miller and Oldfield, it becomes necessary to determine what effect, if any, such stipulation had or is to be given as affecting the rights of this plaintiff, who had no knowledge of it, and paid the judgment to Bird in igno*401ranee of its existence. It would seem to be elementary that the right of a surety to indemnity from his principal cannot be destroyed by a secret agreement made between such principal and the creditor, especially when the agreement is of such a character that the surety had no reason to believé it had been made. If this were not so it would always be possible for the creditor and the principal debtor to make an agreement which would discharge the principal from liability and compel the surety to pay or refuse payment to the creditor at his peril.
If A. as principal is indebted to C., and B. is surety, as between themselves, A. is liable to B., but both are jointly and severally liable to G. for the amount of the indebtedness. In such case if demand is made of B. must he refuse payment and compel the creditor to bring an action against him in order that he may ascertain and.have it adjudicated whether- the creditor has made some secret agreement with the principal which is a defense to the claim made against him ? The creditor is under no obligation to bring such action. He is at liberty to bring an action against the surety without joining the principal, and-in such case how is the surety to protect himself against the effect of an agreement which was made between the creditor and the principal and of which he had no knowledge ?
An agreement made between the creditor and the principal which discharges the principal, and which if pleaded in the action brought by the creditor against the surety would be a complete defense, can in no way affect the surety if such agreement is unknown to him, or made under such circumstances that, he is not chargeable with notice of the same. The surety may inquire into the good faith of any arrangement between his principal and the creditor. (United States v. Boyd, 5 How. [U. S.] 29.)
The principal has no right to require any act of the creditor which will affect the surety. Good faith on the part of the principals in this case required them to immediately notify their surety of the agreement which they had made with her creditor, to the end that she might protect herself from the consequences'of their act.
As before said, in the case at bar - the creditor, -Bird, made an agreement which it is said discharged the principals, Miller- and *402Oldfield, and left the plaintiff alone liable to.him for the mortgage debt. Such agreement was made without the knowledge or consent of the surety, this plaintiff. So far as appears, the fact that she had a defense to the claim of Bird by reason of such agreement was not known to her when she paid the claim, nor until she brought her action to recover from the parties who had covenanted to reimburse her for the moneys paid. There is nothing disclosed by the record which would lead her to suspect that any defense existed to. the claim made by Bird against her. When the complaint in the foreclosure action was served she discovered that her obligors, Miller and Oldfield, were parties. .She discovered, or might have discovered, from such complaint that judgment for deficiency was-demanded against them as well as against her, and so far as she knew or could learn she had no defense to the action, or to the form of judgment demanded. As matter of fact, at that time she had no defense; therefore, it would have been idle for her, and she was not called upon, to appear or defend in that action or incur expense for that purpose. So the action proceeded until judgment was recovered, and the plaintiff discovered, or might have discovered, that the judgment was only against her and Elizabeth' Bennett. But that fact could not indicate to her that she had a defense, because the plaintiff in that action (Bird) had a right at any stage in its progress to amend his complaint and demand judgment for deficiency only against the plaintiff in this action. He had a right to discontinue against either of the defendants. As before said, he had a right to proceed against one or either of them,, to recover the amount of the 'deficiency, and if he had done that it would not be pretended, that. Jhe right of the plaintiff in this case to pursue Miller and Oldfield on their covenant to her had in any way been affected.
It is true that if the plaintiff had examined the judgment roll she might have discovered the secret stipulation which was made a part thereof, and then, for the purpose of obtaining relief,-she might have moved to vacate the judgment, to open her default, and for leave to set up the defense which she had learned of for the first, time by such" examination of the .judgment roll. Hot until judgment was recovered against her, and the stipulation was filed as a part of the judgment .roll, could she have learned that she had a defense to the claim of Bird against her.
*403We think due diligence did not require the plaintiff to examine the judgment roll, before paying the judgment, to ascertain whether such roll contained anything that would justify her in refusing payment of the solemn judgment of the court, and that by her failure to make such examination she is not deprived of the benefit of the covenant of the defendants Miller and Oldfield that they would pay any deficiency which arose upon the foreclosure of the mortgage given by her.
The defendants Miller and Oldfield are in the attitude of saying jto the-plaintiff, we made an agreement with your creditor, secretly, which discharged us; made it without your knowledge or consent, and under such circumstances that you could not have known of its existence until after judgment was taken; but, notwithstanding we are relieved from the obligations incurred by the covenant which we made with you, and you, having paid the judgment which we were bound to pay except for such secret agreement, are without remedy. There is no such rule of law. The proposition is not supported by authority or reason.
The plaintiff cannot be required to bring an action against Bird to recover back the sum of money which she paid to him, on the ground that it was paid by mistake and without knowing her rights in the premises, and thus take the responsibility of having the scope and effect of the stipulation determined. She had a right to bring an action directly against these defendants who, in effect, covenanted to save her harmless against the mortgage which she executed; and the secret agreement made by them, which, so far as appears, was unknown to the plaintiff until set up in their respective answers in this action, does not relieve them of the obligation which they respectively assumed.
The rule may be stated to be that where a principal debtor makes a secret agreement with a creditor, the effect of which is to discharge him from liability to the creditor, such agreement does not affect the liability of the principal to his surety, or the manner of enforcing j the same, provided such agreement was not known to the surety, or/ could not have been discovered by due diligence.
The numerous- exceptions taken by counsel for the defendants to the admission and exclusion of evidence have been carefully considered, and we are of the opinion that no one of them presents *404any error which requires the reversal of the judgment or order appealed from.
It ■ follows that the judgment and order should be affirmed, with costs. ’
All concurred, except Spring, J., dissenting.