ENGINE-192: fixed issue for when target_id and src->from are different references|
authorKrista Bennett <krista@pep-project.org>
Tue, 21 Mar 2017 15:26:12 +0100
changeset 168599af97097175
parent 1682 1a6a30a2b30c
child 1687 e376c005ff2d
child 1701 1c2900e68f03
ENGINE-192: fixed issue for when target_id and src->from are different references|
src/message_api.c
     1.1 --- a/src/message_api.c	Mon Mar 20 18:19:06 2017 +0100
     1.2 +++ b/src/message_api.c	Tue Mar 21 15:26:12 2017 +0100
     1.3 @@ -1327,12 +1327,12 @@
     1.4      char* target_fpr = target_id->fpr;
     1.5      if (!target_fpr)
     1.6          return PEP_KEY_NOT_FOUND; // FIXME: Error condition
     1.7 -
     1.8 + 
     1.9      keys = new_stringlist(target_fpr);
    1.10 -
    1.11 +    
    1.12      /* KG: did we ever do this??? */
    1.13      if (!(flags & PEP_encrypt_flag_force_no_attached_key))
    1.14 -        attach_own_key(session, src);
    1.15 +        _attach_key(session, target_fpr, src);
    1.16  
    1.17      msg = clone_to_empty_message(src);
    1.18      if (msg == NULL)