Any person of whom a bond, undertaking or other obligation is required may agree with his surety or sureties concerning the deposit of any money or assets for which he and his surety or sureties are held responsible with a bank, savings bank or safe-deposit or trust company authorized by law to do business as such, or with any other depository approved by the court requiring such obligation or by a judge thereof, if such deposit is otherwise legal, for the safekeeping thereof. Such deposit shall be made in such manner as to prevent the withdrawal of such money or assets or any part thereof without the written consent of such surety or sureties or an order of such court or judge made on such notice to such surety or sureties as such court or judge directs; provided such agreement shall not release from or change the liability of the principal or sureties as established by the terms of such bond.
Conn. Gen. Stat. § 1-27
(1949 Rev., S. 3578.)