Detach the subvalidator immediately after saving the name pointing into the caller's message. Move detaching val->parent to destroy_validator. Store the validator result instead of eresult. The code only needs a single variable.
Detach the subvalidator immediately after saving the name pointing into the caller's message. Move detaching val->parent to destroy_validator. Store the validator result instead of eresult. The code only needs a single variable.