diff options
author | Werner Koch <[email protected]> | 2024-10-21 15:07:28 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2024-10-21 15:08:59 +0000 |
commit | 51b7bb9106587c2129dca3e4f3a1ec6225c64cfb (patch) | |
tree | bc6bdd03b7be012ee415e807ddf8972654762c66 /common/compliance.c | |
parent | build: Don't remove --disable-endian-check. (diff) | |
download | gnupg-51b7bb9106587c2129dca3e4f3a1ec6225c64cfb.tar.gz gnupg-51b7bb9106587c2129dca3e4f3a1ec6225c64cfb.zip |
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.
Diffstat (limited to 'common/compliance.c')
-rw-r--r-- | common/compliance.c | 2 |
1 files changed, 1 insertions, 1 deletions
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"); } |