(1) The surety may assert the defences to which the principal debtor is entitled. If the principal debtor dies, then the surety may not invoke the fact that the heir has merely limited liability for the obligation.
(2) The surety is not deprived of a defence by the fact that the principal debtor waives it.