diff options
author | NIIBE Yutaka <[email protected]> | 2023-05-01 02:38:20 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2023-05-10 08:09:55 +0000 |
commit | 709ab03bc20895504225a70f494f42b0a057cc00 (patch) | |
tree | 6826db5c71c5a29f11a76bf3e8fcab5de0660e66 | |
parent | scd: Fix cmd_apdu on error. (diff) | |
download | gnupg-709ab03bc20895504225a70f494f42b0a057cc00.tar.gz gnupg-709ab03bc20895504225a70f494f42b0a057cc00.zip |
common: Fix parsing ECC key.
* common/sexputil.c (get_ecc_q_from_canon_sexp): Initialize ECC_Q_LEN.
--
Signed-off-by: NIIBE Yutaka <[email protected]>
-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 6a962fd6a..b97e174a1 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; |