diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2023-05-01 04:38:20 +0200 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2023-05-01 04:38:20 +0200 |
commit | 698caf30b9f9b3228b61d3324ea3d9a49a232d75 (patch) | |
tree | ffc5e9994e945cb7cf3ac04baf59b6a8af46e17a | |
parent | scd: Fix cmd_apdu on error. (diff) | |
download | gnupg2-698caf30b9f9b3228b61d3324ea3d9a49a232d75.tar.xz gnupg2-698caf30b9f9b3228b61d3324ea3d9a49a232d75.zip |
common: Fix parsing ECC key.
* common/sexputil.c (get_ecc_q_from_canon_sexp): Initialize ECC_Q_LEN.
--
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
-rw-r--r-- | common/sexputil.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/sexputil.c b/common/sexputil.c index 29fe508b6..c7471be85 100644 --- a/common/sexputil.c +++ b/common/sexputil.c @@ -614,7 +614,7 @@ get_ecc_q_from_canon_sexp (const unsigned char *keydata, size_t keydatalen, size_t buflen, toklen; int depth, last_depth1, last_depth2; const unsigned char *ecc_q = NULL; - size_t ecc_q_len; + size_t ecc_q_len = 0; *r_q = NULL; *r_qlen = 0; |