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