Skip to content

Commit

Permalink
Merge pull request #17 from imkuang/fix_pw1-life-status
Browse files Browse the repository at this point in the history
Fix conditional error resetting has_pw1 variable
  • Loading branch information
polhenarejos authored Jul 15, 2024
2 parents 20e7c93 + 886bee5 commit 5aba166
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/openpgp/openpgp.c
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ int inc_sig_count() {
if (!(pw_status = search_by_fid(EF_PW_PRIV, NULL, SPECIFY_EF)) || !pw_status->data) {
return SW_REFERENCE_NOT_FOUND();
}
if (file_get_data(pw_status)[0] == 1) {
if (file_get_data(pw_status)[0] == 0) {
has_pw1 = false;
}
file_t *ef = search_by_fid(EF_SIG_COUNT, NULL, SPECIFY_ANY);
Expand Down

0 comments on commit 5aba166

Please sign in to comment.