-TID_REQ *tid_dup_req (TID_REQ *orig_req)
-{
- TID_REQ *new_req;
-
- if (NULL == (new_req = malloc(sizeof(TID_REQ))))
- return NULL;
-
- /* Memcpy for flat fields, not valid until names are duped. */
- memcpy(new_req, orig_req, sizeof(TID_REQ));
-
- new_req->rp_realm = tr_dup_name(orig_req->rp_realm);
- new_req->realm = tr_dup_name(orig_req->realm);
- new_req->comm = tr_dup_name(orig_req->comm);
- new_req->orig_coi = tr_dup_name(orig_req->orig_coi);
-
- return new_req;
-}
-