mirror of https://gerrit.osmocom.org/asn1c
empty SET OF with malloc(0)
This commit is contained in:
parent
857d11b247
commit
990e22099f
|
@ -355,7 +355,7 @@ SET_OF_encode_der(asn_TYPE_descriptor_t *td, void *ptr,
|
|||
}
|
||||
computed_size += encoding_size;
|
||||
|
||||
if(!cb) {
|
||||
if(!cb | list->count == 0) {
|
||||
erval.encoded = computed_size;
|
||||
_ASN_ENCODED_OK(erval);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue