A surety, who has been indemnified by the principal, is liable to the creditor to the extent of the indemnity, notwithstanding that the creditor, without the assent of the surety, may have modified the contract or released the principal.
(Amended by Stats. 1939, Ch. 453.)