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:
parent
347ab07c62
commit
51b7bb9106
@ -685,7 +685,7 @@ gnupg_status_compliance_flag (enum gnupg_compliance_mode compliance)
|
|||||||
case CO_PGP8:
|
case CO_PGP8:
|
||||||
log_assert (!"no status code assigned for this compliance mode");
|
log_assert (!"no status code assigned for this compliance mode");
|
||||||
case CO_DE_VS:
|
case CO_DE_VS:
|
||||||
return assumed_de_vs_compliance ? "2023" : "23";
|
return assumed_de_vs_compliance > 0 ? "2023" : "23";
|
||||||
}
|
}
|
||||||
log_assert (!"invalid compliance mode");
|
log_assert (!"invalid compliance mode");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user