src/sync.c
branchkeysync
changeset 1129 d928a7221b96
parent 1128 51ea505b60e6
child 1160 a176739cd3c3
     1.1 --- a/src/sync.c	Fri Sep 02 16:40:06 2016 +0200
     1.2 +++ b/src/sync.c	Fri Sep 02 16:54:55 2016 +0200
     1.3 @@ -165,6 +165,9 @@
     1.4      if (!(text && data && size))
     1.5          return PEP_ILLEGAL_VALUE;
     1.6  
     1.7 +    *data = NULL;
     1.8 +    *size = 0;
     1.9 +
    1.10      DeviceGroup_Protocol_t *msg = NULL;
    1.11      asn_dec_rval_t dr = xer_decode(NULL, &asn_DEF_DeviceGroup_Protocol,
    1.12              (void **) &msg, (const void *) text, strlen(text));