g10: fix --card-status creating stub.

* g10/getkey.c (get_seckeyblock_byfprint): Require exact match.
This commit is contained in:
NIIBE Yutaka 2015-08-12 10:23:40 +09:00
parent 35d3ced4fd
commit 80521c3ff9
1 changed files with 1 additions and 0 deletions

View File

@ -1414,6 +1414,7 @@ get_seckeyblock_byfprint (KBNODE *ret_keyblock, const byte *fprint,
return G10ERR_GENERAL; /* Oops */
memset (&ctx, 0, sizeof ctx);
ctx.exact = 1 ;
ctx.not_allocated = 1;
ctx.kr_handle = keydb_new (1);
ctx.nitems = 1;