diff options
author | Werner Koch <[email protected]> | 2003-01-09 12:59:25 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2003-01-09 12:59:25 +0000 |
commit | c13b76ca6a495cda6e51934a7788f48ca6f3bb0e (patch) | |
tree | d52174e8d500d7db90181bf71624d69d0c6836c5 /agent/protect-tool.c | |
parent | * keygen.c (keygen_set_std_prefs): Warn when setting an IDEA preference (diff) | |
download | gnupg-c13b76ca6a495cda6e51934a7788f48ca6f3bb0e.tar.gz gnupg-c13b76ca6a495cda6e51934a7788f48ca6f3bb0e.zip |
Updated from latest NewPG project
Diffstat (limited to '')
-rw-r--r-- | agent/protect-tool.c | 2 |
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; |