server/test.c: Don't try to trace if it's turned off.
[tripe] / server / test.c
index 152a6fe..f83cd1e 100644 (file)
@@ -132,7 +132,8 @@ int main(int argc, char *argv[])
   args = argv + optind;
 
   km_init(kr, kr, tag);
-  trace_on(stderr, tr_flags);
+  if (!master) die(3, "failed to load the master key");
+  T( trace_on(stderr, tr_flags); )
 
   arg = getarg();
   if (strcmp(arg, "ies-encrypt") == 0) {