...
authorvb
Tue, 24 Feb 2015 02:06:11 +0100
changeset 73075aa4eaeb4f
parent 72 07265a6367ff
child 74 c94f9b9cb7f2
...
src/message_api.c
     1.1 --- a/src/message_api.c	Mon Feb 23 17:27:42 2015 +0100
     1.2 +++ b/src/message_api.c	Tue Feb 24 02:06:11 2015 +0100
     1.3 @@ -278,8 +278,17 @@
     1.4      )
     1.5  {
     1.6      PEP_STATUS status = PEP_STATUS_OK;
     1.7 +    message *msg = NULL;
     1.8  
     1.9 -    NOT_IMPLEMENTED
    1.10 +    msg = new_message(src->dir, from, to, NULL);
    1.11 +
    1.12 +    return msg;
    1.13 +
    1.14 +enomem:
    1.15 +    status = PEP_OUT_OF_MEMORY;
    1.16 +
    1.17 +pep_error:
    1.18 +    free_message(msg);
    1.19  
    1.20      return status;
    1.21  }