find_template
if ((tnl = find_template(tpentp->name)) != NULL) {
if (!tnrhtp_bad && find_template(rhentp->rh_template) == NULL) {