stowing changes ENGINE-214
authorKrista Bennett <krista@pep-project.org>
Tue, 05 Sep 2017 18:46:05 +0200
branchENGINE-214
changeset 2034b6742bbca2d2
parent 2033 84eefe72aa40
child 2035 61b05d325adc
child 2044 135f59490f59
stowing changes
src/message_api.c
     1.1 --- a/src/message_api.c	Tue Sep 05 15:11:29 2017 +0200
     1.2 +++ b/src/message_api.c	Tue Sep 05 18:46:05 2017 +0200
     1.3 @@ -433,7 +433,7 @@
     1.4      /* Turn message into a MIME-blob */
     1.5      PEP_STATUS status = mime_encode_message(attachment, false, &message_text);
     1.6      
     1.7 -    if (status != PEP_STATUS_OK) {
     1.8 +    if (status != PEP_STATUS_OK || !message_text) {
     1.9          free(_envelope);
    1.10          return NULL;
    1.11      }