From 51b7bb9106587c2129dca3e4f3a1ec6225c64cfb Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 21 Oct 2024 17:07:28 +0200 Subject: [PATCH] common: Fix test for the assumed compliance. * common/compliance.c (gnupg_status_compliance_flag): Fix test. -- In general the cache is used to query this flag but in this function it is used directly and we need to adjust the test. Thanks to Ingo for reporting this. --- common/compliance.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/compliance.c b/common/compliance.c index faea384d9..997cc37cc 100644 --- a/common/compliance.c +++ b/common/compliance.c @@ -685,7 +685,7 @@ gnupg_status_compliance_flag (enum gnupg_compliance_mode compliance) case CO_PGP8: log_assert (!"no status code assigned for this compliance mode"); case CO_DE_VS: - return assumed_de_vs_compliance ? "2023" : "23"; + return assumed_de_vs_compliance > 0 ? "2023" : "23"; } log_assert (!"invalid compliance mode"); }