Commit 990e2209 authored by Lev Walkin's avatar Lev Walkin

empty SET OF with malloc(0)

parent 857d11b2
...@@ -355,7 +355,7 @@ SET_OF_encode_der(asn_TYPE_descriptor_t *td, void *ptr, ...@@ -355,7 +355,7 @@ SET_OF_encode_der(asn_TYPE_descriptor_t *td, void *ptr,
} }
computed_size += encoding_size; computed_size += encoding_size;
if(!cb) { if(!cb | list->count == 0) {
erval.encoded = computed_size; erval.encoded = computed_size;
_ASN_ENCODED_OK(erval); _ASN_ENCODED_OK(erval);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment