sync/gen_codec.ysl2
branchsync
changeset 2875 8e3169c2952a
parent 2844 6fce34991f7d
child 2899 63b619aef131
     1.1 --- a/sync/gen_codec.ysl2	Wed Aug 22 20:51:23 2018 +0200
     1.2 +++ b/sync/gen_codec.ysl2	Wed Aug 22 21:44:48 2018 +0200
     1.3 @@ -117,10 +117,12 @@
     1.4                  return PEP_ILLEGAL_VALUE;
     1.5  
     1.6              *msg = NULL;
     1.7 -            uper_decode_complete(NULL, &asn_DEF_«@name», (void **) &msg, data, size);
     1.8 -            if (!msg)
     1.9 +            «@name»_t *_msg = NULL;
    1.10 +            uper_decode_complete(NULL, &asn_DEF_«@name», (void **) &_msg, data, size);
    1.11 +            if (!_msg)
    1.12                  return PEP_«yml:ucase(@name)»_ILLEGAL_MESSAGE;
    1.13  
    1.14 +            *msg = _msg;
    1.15              return PEP_STATUS_OK;
    1.16          }
    1.17