1
0
mirror of git://git.gnupg.org/gnupg.git synced 2025-02-24 20:11:06 +01:00
Werner Koch 101ba4f18a
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 <wk@gnupg.org>
2021-07-08 13:57:13 +02:00
..
2020-09-24 16:38:21 +02:00
2020-09-24 16:38:21 +02:00
2020-09-24 16:38:21 +02:00
2020-11-11 15:23:22 +01:00
2021-05-20 14:45:29 +02:00
2018-10-24 15:56:18 -04:00
2021-04-13 14:35:04 +09:00
2021-05-20 14:45:29 +02:00
2021-03-22 19:13:07 +01:00
2021-04-13 13:54:14 +09:00
2018-10-25 16:53:05 -04:00