summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2023-05-01 04:38:20 +0200
committerNIIBE Yutaka <gniibe@fsij.org>2023-05-01 04:38:20 +0200
commit698caf30b9f9b3228b61d3324ea3d9a49a232d75 (patch)
treeffc5e9994e945cb7cf3ac04baf59b6a8af46e17a
parentscd: Fix cmd_apdu on error. (diff)
downloadgnupg2-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.c2
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;