src/message_api.c
changeset 465 89d10f171fc5
parent 445 5db143765d47
child 466 b23070ac6ddc
     1.1 --- a/src/message_api.c	Mon Feb 22 13:50:57 2016 +0100
     1.2 +++ b/src/message_api.c	Mon Feb 22 13:56:31 2016 +0100
     1.3 @@ -942,7 +942,8 @@
     1.4  
     1.5      if (!dest_keys_found) {
     1.6          free_stringlist(keys);
     1.7 -        attach_own_key(session, src);
     1.8 +        if (!session->passive_mode)
     1.9 +            attach_own_key(session, src);
    1.10          return PEP_UNENCRYPTED;
    1.11      }
    1.12      else {