diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2020-11-25 02:32:28 +0100 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2020-11-25 02:32:28 +0100 |
commit | 006944b856ee2202905290e8a2f5523a7877d444 (patch) | |
tree | 6b18f59f4e1234911409ad5c1fc1e56600987a01 /scd/app-nks.c | |
parent | doc: Fix typos (diff) | |
download | gnupg2-006944b856ee2202905290e8a2f5523a7877d444.tar.xz gnupg2-006944b856ee2202905290e8a2f5523a7877d444.zip |
scd,nks: Fix SEGV for learn for older card.
* scd/app-nks.c (keygripstr_from_pk_file): Set algostr.
--
GnuPG-bug-id: 5144
Fixes-commit: 26da47ae53d51e16ae6867cd419ddbf124a94933
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'scd/app-nks.c')
-rw-r--r-- | scd/app-nks.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scd/app-nks.c b/scd/app-nks.c index 47be7cd85..caf686316 100644 --- a/scd/app-nks.c +++ b/scd/app-nks.c @@ -440,6 +440,7 @@ keygripstr_from_pk_file (app_t app, int pkfid, int cfid, char *r_gripstr, bin2hex (grip, 20, r_gripstr); if (r_algo) *r_algo = algo; + algostr = pubkey_algo_string (sexp, NULL); } |