If a receiver be appointed upon an ex parte application, the court, before making the order, may require from the applicant an undertaking, with sufficient sureties, in an amount to be fixed by the court, to the effect that the applicant will pay to the defendant all damages he may sustain by reason of the appointment of such receiver and the entry by him upon his duties, in case the applicant shall have procured such appointment wrongfully, maliciously, or without sufficient cause; and the court may, in its discretion, at any time after said appointment, require an additional undertaking.
SDCL 21-21-6