Merge branch 'STABLE-BRANCH-2-2' into master
[gnupg.git] / g10 / tdbdump.c
index 37bf78b..73a6c2c 100644 (file)
@@ -191,7 +191,7 @@ import_ownertrust (ctrl_t ctrl, const char *fname )
        while (fprlen < MAX_FINGERPRINT_LEN)
            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)
               {