X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=tid%2Ftids.c;h=74e790e9b72fc353050c931550e355e34bb0d305;hb=81a61f8c6064bf52ff2a40a3d28e6ee5b2e478d4;hp=6a5b172e56507e7536998fd7172aacd9bd0a3481;hpb=0ac866280fd97ef0b40a057f91b77b404499d185;p=trust_router.git diff --git a/tid/tids.c b/tid/tids.c index 6a5b172..74e790e 100644 --- a/tid/tids.c +++ b/tid/tids.c @@ -80,6 +80,12 @@ static TID_RESP *tids_create_response(TALLOC_CTX *mem_ctx, TID_REQ *req) goto cleanup; } } + if (req->request_id) { + if (NULL == (resp->request_id = tr_dup_name(req->request_id))) { + tr_crit("tids_create_response: Error allocating fields in response."); + goto cleanup; + } + } success=1; @@ -399,8 +405,8 @@ int tids_accept(TIDS_INSTANCE *tids, int listen) int pipe_fd[2]; struct tid_process tp = {0}; - if (0 > (conn = accept(listen, NULL, NULL))) { - perror("Error from TIDS Server accept()"); + if (0 > (conn = tr_sock_accept(listen))) { + tr_err("tids_accept: Error accepting connection"); return 1; }