The liability of a surety under a releasing bond or other like obligation shall be discharged to the extent of the value of the indemnifying property recovered or the indemnifying lien nullified and avoided by the liquidator, or where the property is retained under section 22 of this chapter to the extent of the amount paid to the liquidator.
IC 27-9-3-23