mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
gpg: Pass CTRL arg to get_trusthashrec.
* g10/tdbio.c (get_trusthashrec): Add arg CTRL. (tdbio_search_trust_byfpr): Ditto. (tdbio_search_trust_bypk): Ditto. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
403aa70c52
commit
a750ebebf3
4 changed files with 15 additions and 11 deletions
|
@ -189,7 +189,7 @@ import_ownertrust (ctrl_t ctrl, const char *fname )
|
|||
while (fprlen < 20)
|
||||
fpr[fprlen++] = 0;
|
||||
|
||||
rc = tdbio_search_trust_byfpr (fpr, &rec);
|
||||
rc = tdbio_search_trust_byfpr (ctrl, fpr, &rec);
|
||||
if( !rc ) { /* found: update */
|
||||
if (rec.r.trust.ownertrust != otrust)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue