aboutsummaryrefslogtreecommitdiffstats
path: root/agent
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2024-09-17 11:38:35 +0000
committerWerner Koch <[email protected]>2024-09-19 08:03:37 +0000
commit6432d17385d04a3e1d50bd8aa2007025e4a1b871 (patch)
treec631ad2cff146d65aca9d69165884d88d362ff58 /agent
parentkbx: Fix a race condition on DATABASE_HD. (diff)
downloadgnupg-6432d17385d04a3e1d50bd8aa2007025e4a1b871.tar.gz
gnupg-6432d17385d04a3e1d50bd8aa2007025e4a1b871.zip
agent: Fix detection of the trustflag de-vs.
* agent/trustlist.c (read_one_trustfile): Fix comparison. -- Fixes-commit: a5360ae4c7bfe6df6754409d5bd5c5a521ae5e6f GnuPG-bug-Id: 5079
Diffstat (limited to 'agent')
-rw-r--r--agent/trustlist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/agent/trustlist.c b/agent/trustlist.c
index a37705b8e..ba15b8428 100644
--- a/agent/trustlist.c
+++ b/agent/trustlist.c
@@ -325,7 +325,7 @@ read_one_trustfile (const char *fname, int systrust,
ti->flags.cm = 1;
else if (n == 4 && !memcmp (p, "qual", 4) && systrust)
ti->flags.qual = 1;
- else if (n == 4 && !memcmp (p, "de-vs", 4) && systrust)
+ else if (n == 5 && !memcmp (p, "de-vs", 5) && systrust)
ti->flags.de_vs = 1;
else
log_error ("flag '%.*s' in '%s', line %d ignored\n",