From 6ff13380a2e3226f675740ee66c8d56fa6f5d110 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 17 Sep 2024 13:38:35 +0200 Subject: [PATCH] agent: Fix detection of the trustflag de-vs. * agent/trustlist.c (read_one_trustfile): Fix comparison. -- Fixes-commit: a5360ae4c7bfe6df6754409d5bd5c5a521ae5e6f GnuPG-bug-Id: 5079 --- agent/trustlist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/trustlist.c b/agent/trustlist.c index 330f233b8..78ed06238 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",