It is not a failure to have no constraints at all, although no authorizations are...
authorSam Hartman <hartmans@debian.org>
Mon, 14 Jul 2014 19:59:46 +0000 (15:59 -0400)
committerSam Hartman <hartmans@debian.org>
Mon, 14 Jul 2014 20:07:34 +0000 (16:07 -0400)
tid/example/tids_main.c

index f67a592..79230b7 100644 (file)
@@ -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)