From 0b84faeb8b6a10f250c7e185f1823dd89346f7db Mon Sep 17 00:00:00 2001 From: Sam Hartman Date: Mon, 14 Jul 2014 15:59:46 -0400 Subject: [PATCH] It is not a failure to have no constraints at all, although no authorizations are created --- tid/example/tids_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tid/example/tids_main.c b/tid/example/tids_main.c index f67a592..79230b7 100644 --- a/tid/example/tids_main.c +++ b/tid/example/tids_main.c @@ -105,7 +105,7 @@ static int handle_authorizations(TID_REQ *req, const unsigned char *dh_hash, if (!req->cons) { tr_debug("Request has no constraints, so no authorizations.\n"); - return -1; + return 0; } intersected = tr_constraint_set_intersect(req, req->cons); if (!intersected) -- 2.1.4