src/sync_impl.c
branchkeysync
changeset 1073 b5c5c448a1dd
parent 1072 710d0936541d
child 1074 aebf26305436
     1.1 --- a/src/sync_impl.c	Tue Aug 23 17:21:31 2016 +0200
     1.2 +++ b/src/sync_impl.c	Tue Aug 23 17:27:56 2016 +0200
     1.3 @@ -98,7 +98,7 @@
     1.4  DeviceGroup_Protocol_t *new_DeviceGroup_Protocol_msg(DeviceGroup_Protocol__payload_PR type)
     1.5  {
     1.6      DeviceGroup_Protocol_t *msg = (DeviceGroup_Protocol_t *)
     1.7 -            calloc(1, sizeof(HandshakeRequest_t));
     1.8 +            calloc(1, sizeof(DeviceGroup_Protocol_t));
     1.9      assert(msg);
    1.10      if (!msg)
    1.11          return NULL;
    1.12 @@ -155,7 +155,7 @@
    1.13      status = get_identity(session, partner->address, PEP_OWN_USERID, &me);
    1.14      if (status != PEP_STATUS_OK)
    1.15          goto error;
    1.16 -    if (Identity_from_Struct(me, &msg->header.me) == NULL)
    1.17 +    if (msg->header.me = Identity_from_Struct(me, NULL) == NULL)
    1.18          goto enomem;
    1.19  
    1.20      if (asn_check_constraints(&asn_DEF_DeviceGroup_Protocol, msg, NULL, NULL)) {