§ 2509. Control of assets by agreement with surety. Any person of whom\nan undertaking is required may agree with his surety for the deposit of\nany assets for which his surety may be held responsible with a bank, or\nsafe deposit or trust company, authorized to do business in the state,\nif such deposit is otherwise proper and in such manner as to prevent\nwithdrawal without the written consent of the surety or an order of\ncourt, made on notice to the surety. The agreement shall not affect the\nliability of the principal or surety as established by the terms of the\nundertaking.\n