From 990e22099f3bb2575ecf6da37bae5e7a3ca560d9 Mon Sep 17 00:00:00 2001 From: Lev Walkin Date: Sun, 26 Feb 2006 05:08:41 +0000 Subject: [PATCH] empty SET OF with malloc(0) --- skeletons/constr_SET_OF.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skeletons/constr_SET_OF.c b/skeletons/constr_SET_OF.c index e93c70c8..841e67f8 100644 --- a/skeletons/constr_SET_OF.c +++ b/skeletons/constr_SET_OF.c @@ -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); }