chiark
/
gitweb
/
~mdw
/
tripe
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
32b550b
)
server/test.c: Don't segfault if the keyring is bogus.
author
Mark Wooding
<mdw@distorted.org.uk>
Sun, 22 Sep 2019 13:45:41 +0000
(14:45 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sun, 22 Sep 2019 14:00:41 +0000
(15:00 +0100)
server/test.c
patch
|
blob
|
blame
|
history
diff --git
a/server/test.c
b/server/test.c
index 152a6fe6b7d76bba1c7f7b40152856f4749e37b5..73656ec130e653378173fa53e7229e31b2728c3d 100644
(file)
--- a/
server/test.c
+++ b/
server/test.c
@@
-132,6
+132,7
@@
int main(int argc, char *argv[])
args = argv + optind;
km_init(kr, kr, tag);
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();
trace_on(stderr, tr_flags);
arg = getarg();