Sometimes by statute, an attorney-at-law may be prohibited from acting as a surety or signing a bond as surety for his client, but the disability simply goes to the penalty, usually, for the violation of the statute, and under the principle of estoppel the surety is held liable on his obligation as assumed,12 if notwithstanding the statute, his bond is accepted. And the fact that such a surety is held liable on the bond, would not relieve him from his offense of breaking the rule of the statute, and he would still be liable to answer to the courts for his wrong. The rule prohibiting such a person from acting as a surety is founded on the principles of public policy; the punishment would be by fine, or punishment as for contempt of court.

A statute, the provisions of which state, that an attorney shall not be received as bail in a criminal case, is held to be directory only. The attorney who signs such a bond and is received as the surety in such a case, would be bound on the contract.13 He will not be permitted afterward to plead his incapacity, as a defense to the suit on the bond.