This is an action against the defendant as surety in an undertaking upon appeal. In April, 1892, the. plaintiff obtained a judgment of divorce and for alimony against her husband. To enforce this alimony judgment the plaintiff brought an action in equity against her husband and a trustee appointed under his father’s will to compel -the application to the payment of her alimony of the income earned by a trust fund created for the husband’s benefit under this will. She was successful In that equity action at Special Term and again at General Term. The defendants therein then appealed to the Court of Appeals, and upon that appeal gave the undertakings now sued upon.. In these instruments the defendant'(here) undertakes that the appellants (there) will pay all costs and damages *286which may be awarded, against them on their appeals, and also that, if the judgment appealed, from be affirmed, they will pay the sum recovered or directed tó be paid thereby. The judgment was affirmed by the Court of Appeals, and this action upon the undertakings followed. It'appears that, notwithstanding these undertakings, tlie plaintiff collected, pending the appeal, all the income which was earned by the trust. It appears, also, that prior to the commencement of this action the present defendant paid to the plaintiff all the. costs awarded to her in the Court of Appeals, and also all the costs for which she had judgment at Special and General Terms. Thus the entire obligation of this defendant on the undertakings was fulfilled. The plaintiff has ha.d every dollar which she recovered, or which was directed to be paid, by the judgment there appealed from, and has also been paid her money judgments for costs.
It may well be asked, under these circumstances, what her complaint is in the present action. Avowedly, it is to compel the surety to pay the alimony. awarded to her in the original divorce judgment, less the sums received by her from the trust fund under the decree in the equity action. But the surety made no such contract. Its undertaking was not upon any appeal taken in the divorce case. It liad nothing whatever to do with that case. Its undertaking was statutory, and related solely, to the equity action which was brought in aid of the original alimony decree. There was no judgment in this equity action requiring either the husband or the trustee personally to pay the sums awarded to the plaintiff as alimony in the divorce action. The judgment in the equity action simply decreed a lien in the plaintiff’s favor upon the trust fund to the extent of her alimony judgment, and directed the payment to her of all the trust income which should be required to satisfy that alimony judgment. Rot a dollar was required to he paid by this equity decree save the trust income. That that trust income should be paid to the plaintiff was, therefore, the defendant’s sole undertaking. The claim of any other or different liability is wholly without foundation. It was to indemnify itself against that •particular liability, and against no other, that this surety company took security from the appellants in the equity action.. That liability having been extinguished by the satisfaction of the equity judgment, *287this security was properly returned to the appellants, there. It is said that, but for the stay resulting from this defendant’s undertaking, the plaintiff could have compelled the trustee, appellant, to invest part of the principal to better advantage, and thus have produced á larger income for her benefit. That, however, is a consideration entirely foreign- to the defendant’s contract. The defendant neither guaranteed the amount of the income nor the management of the trust fund. Its contract was that - the income actually produced should be paid over to the plaintiff, not the' income which might be produced by the exercise of superior judgment on the part of the trustee.
Upon the admitted facts, the complaint should have been dismissed, with costs, and judgment given to the defendant upon its counterclaim, namely, that the plaintiff execute and deliver to it an assignment of the judgment for costs which it has paid. As the facts cannot - be altered upon a new trial, this should now be the result. ■
The judgment appealed from is accordingly reversed, with costs, and the complaint dismissed, with costs, and an affirmative judgment as prayed for in its counterclaim is awarded to the defendant.
Rumsey, Ingraham and McLaughlin, JJ., concurred.
Judgment reversed, with costs, complaint dismissed, with costs, and judgment ordered for defendant on its counterclaim.