1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-10-29 19:48:43 +01:00

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.
This commit is contained in:
Werner Koch 2024-10-21 17:07:28 +02:00
parent 347ab07c62
commit 51b7bb9106
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -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");
}