ENGINE-27: set_identity can be called with a null/empty fpr now per Volker. ensured it does not call blacklist_is_listed on null/empty fprs

doc_update_sequoia
Krista Grothoff 2016-09-29 13:07:41 +02:00
parent 19a1b40502
commit 1e54cadadd
1 changed files with 2 additions and 1 deletions

View File

@ -111,6 +111,7 @@ DYNAMIC_API PEP_STATUS update_identity(
)
{
pEp_identity *stored_identity;
pEp_identity* temp_id = NULL;
PEP_STATUS status;
assert(session);
@ -146,7 +147,7 @@ DYNAMIC_API PEP_STATUS update_identity(
goto exit_free;
/* We elect a pubkey first in case there's no acceptable stored fpr */
pEp_identity* temp_id = identity_dup(identity);
temp_id = identity_dup(identity);
status = elect_pubkey(session, temp_id);
if (status != PEP_STATUS_OK)