Browse Source

update_identity(): if no user_id then have a look if it is an own identity first, and if so call myself()

doc_update_sequoia
Volker Birk 6 years ago
parent
commit
be18b1c198
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      src/keymanagement.c

+ 7
- 0
src/keymanagement.c View File

@ -124,6 +124,13 @@ DYNAMIC_API PEP_STATUS update_identity(
if (_no_user_id)
{
status = get_identity(session, identity->address, PEP_OWN_USERID,
&stored_identity);
if (status == PEP_STATUS_OK) {
free_identity(stored_identity);
return myself(session, identity);
}
free(identity->user_id);
identity->user_id = calloc(1, strlen(identity->address) + 6);


Loading…
Cancel
Save