projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28b9dcf
)
gcrypt.c: Always initialize result pointer in get_private_key().
author
Andre Noll
<maan@tuebingen.mpg.de>
Sun, 10 Jul 2016 20:20:03 +0000
(22:20 +0200)
committer
Andre Noll
<maan@tuebingen.mpg.de>
Fri, 6 Jan 2017 17:53:40 +0000
(18:53 +0100)
This should not matter since the only caller, priv_decrypt(), returns
without investigating the result pointer on errors, but let's be
conservative here.
gcrypt.c
patch
|
blob
|
history
diff --git
a/gcrypt.c
b/gcrypt.c
index 7c19aeb0c3edc022c5b0f0425a202e37fd38d906..ee1092033b42d7d513e0821c2022abe848e8189e 100644
(file)
--- a/
gcrypt.c
+++ b/
gcrypt.c
@@
-460,6
+460,7
@@
static int get_private_key(const char *key_file, struct asymmetric_key **result)
gcry_sexp_t sexp;
struct asymmetric_key *key;
+ *result = NULL;
ret = decode_key(key_file, PRIVATE_KEY_HEADER, PRIVATE_KEY_FOOTER,
&blob);
if (ret < 0)