Browse Source

Fix for ENGINE-356

doc_update_sequoia
Krista Bennett 4 years ago
parent
commit
a6cbccf6b9
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      src/keymanagement.c

+ 1
- 2
src/keymanagement.c View File

@ -1225,7 +1225,7 @@ DYNAMIC_API PEP_STATUS key_reset_trust(
goto pep_free;
// remove as default if necessary
if (strcmp(tmp_ident->fpr, ident->fpr) == 0) {
if (!EMPTYSTR(tmp_ident->fpr) && strcmp(tmp_ident->fpr, ident->fpr) == 0) {
free(tmp_ident->fpr);
tmp_ident->fpr = NULL;
tmp_ident->comm_type = PEP_ct_unknown;
@ -1296,7 +1296,6 @@ DYNAMIC_API PEP_STATUS trust_personal_key(
goto pep_free;
}
// Save the input fpr
cached_fpr = strdup(ident->fpr);


Loading…
Cancel
Save