• Vasil Velichkov's avatar
    Use ASN_STRUCT_RESET to free and reset the OPEN_TYPE memory · a23f13fe
    Vasil Velichkov authored
    Previously when decoding fails the memory was reset with memset after
    casting the specifics to asn_CHOICE_specifics_t in order to get the size
    
    The problem is that the OPEN TYPE could contains a different type not
    derived from asn_CHOICE that does not have a struct_size member with a
    valid size.
    
    This fixes test failures in examples/sample.source.S1AP
    a23f13fe
OPEN_TYPE.c 14.3 KB