removing unnecessary key adding on error
authorVolker Birk <vb@pep-project.org>
Tue, 01 Mar 2016 12:57:44 +0100
changeset 480dc8c26e06eb0
parent 479 e7ba9e9272af
child 481 342f0906b757
removing unnecessary key adding on error
src/message_api.c
     1.1 --- a/src/message_api.c	Sun Feb 28 19:10:17 2016 +0100
     1.2 +++ b/src/message_api.c	Tue Mar 01 12:57:44 2016 +0100
     1.3 @@ -1011,10 +1011,8 @@
     1.4          if (status == PEP_OUT_OF_MEMORY)
     1.5              goto enomem;
     1.6          
     1.7 -        if (status != PEP_STATUS_OK) {
     1.8 -            attach_own_key(session, src);
     1.9 +        if (status != PEP_STATUS_OK)
    1.10              goto pep_error;
    1.11 -        }
    1.12      }
    1.13  
    1.14      free_stringlist(keys);