chiark / gitweb /
server/test.c: Don't segfault if the keyring is bogus.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 22 Sep 2019 13:45:41 +0000 (14:45 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 22 Sep 2019 14:00:41 +0000 (15:00 +0100)
server/test.c

index 152a6fe6b7d76bba1c7f7b40152856f4749e37b5..73656ec130e653378173fa53e7229e31b2728c3d 100644 (file)
@@ -132,6 +132,7 @@ int main(int argc, char *argv[])
   args = argv + optind;
 
   km_init(kr, kr, tag);
+  if (!master) die(3, "failed to load the master key");
   trace_on(stderr, tr_flags);
 
   arg = getarg();