From: Margaret Wasserman Date: Tue, 2 Jul 2013 21:17:26 +0000 (-0400) Subject: Do not send the request on community membership error. X-Git-Tag: 1.0~18 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=trust_router.git;a=commitdiff_plain;h=7cee021e3f9fc1caee7dc6e614dfa444a73a2de2 Do not send the request on community membership error. --- diff --git a/tr/tr_main.c b/tr/tr_main.c index 24b5d6a..b3f7921 100644 --- a/tr/tr_main.c +++ b/tr/tr_main.c @@ -102,6 +102,7 @@ static int tr_tids_req_handler (TIDS_INSTANCE * tids, if (NULL == (tr_find_comm_rp(cfg_comm, orig_req->rp_realm))) { fprintf(stderr, "tr_tids_req_hander: RP Realm (%s) not member of community (%s).\n", orig_req->rp_realm->buf, orig_req->comm->buf); tids_send_err_response(tids, orig_req, "RP community membership error"); + return -1; } /* Map the comm in the request from a COI to an APC, if needed */ @@ -122,6 +123,7 @@ static int tr_tids_req_handler (TIDS_INSTANCE * tids, if (NULL == (tr_find_comm_idp(cfg_comm, orig_req->realm))) { fprintf(stderr, "tr_tids_req_hander: IDP Realm (%s) not member of APC (%s).\n", orig_req->realm->buf, orig_req->comm->buf); tids_send_err_response(tids, orig_req, "IDP APC membership error"); + return -1; } /* Find the AAA server(s) for this request */