aboutsummaryrefslogtreecommitdiffstats
path: root/agent/protect-tool.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2003-01-09 12:59:25 +0000
committerWerner Koch <[email protected]>2003-01-09 12:59:25 +0000
commitc13b76ca6a495cda6e51934a7788f48ca6f3bb0e (patch)
treed52174e8d500d7db90181bf71624d69d0c6836c5 /agent/protect-tool.c
parent* keygen.c (keygen_set_std_prefs): Warn when setting an IDEA preference (diff)
downloadgnupg-c13b76ca6a495cda6e51934a7788f48ca6f3bb0e.tar.gz
gnupg-c13b76ca6a495cda6e51934a7788f48ca6f3bb0e.zip
Updated from latest NewPG project
Diffstat (limited to '')
-rw-r--r--agent/protect-tool.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/agent/protect-tool.c b/agent/protect-tool.c
index 1d706ea2b..d501abd79 100644
--- a/agent/protect-tool.c
+++ b/agent/protect-tool.c
@@ -275,6 +275,8 @@ read_key (const char *fname)
unsigned char *key;
buf = read_file (fname, &buflen);
+ if (!buf)
+ return NULL;
key = make_canonical (fname, buf, buflen);
xfree (buf);
return key;