aboutsummaryrefslogtreecommitdiffstats
path: root/kbx/frontend.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2021-07-08 11:55:18 +0000
committerWerner Koch <[email protected]>2021-07-08 11:57:13 +0000
commit101ba4f18aceb39c4d5f0e0a7e16e66827f8e612 (patch)
tree7cdc6b3f168b8f62e6e7dcf3fbab3ec165b33f7c /kbx/frontend.c
parentscd: Detect external interference when PCSC_SHARED. (diff)
downloadgnupg-101ba4f18aceb39c4d5f0e0a7e16e66827f8e612.tar.gz
gnupg-101ba4f18aceb39c4d5f0e0a7e16e66827f8e612.zip
kbx: Fix keyboxd searching with multiple patterns.
* kbx/keybox-search-desc.h (struct keydb_search_desc): New flag name_used. * common/userids.c (classify_user_id): Set flag. * kbx/kbxserver.c (struct search_backing_store_s): New. (cmd_search): use a backing store for the const pointers. (kbxd_start_command_handler): Release the backing store. -- Well, the search object partly uses buffers but also const pointers (for strings and the serial number). This when assigning such objects to an another one we should really take a deep copy and not just copy the pointer. The more clean solution would have been to provide a storage option the search object but that needs checking the code at too many places so that I decided to use a separate backing store array here. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'kbx/frontend.c')
0 files changed, 0 insertions, 0 deletions