EPIC ID: RICAPP-200 Upgrading rc version to 1.0.3 and fixing E2SM RC control structure
[ric-app/rc.git] / e2sm / lib / OCTET_STRING.c
index ae34c96..628a5d6 100644 (file)
@@ -1802,7 +1802,7 @@ OCTET_STRING_decode_aper(const asn_codec_ctx_t *opt_codec_ctx,
                        (long)csiz->effective_bits, (long)raw_len,
                        repeat ? "repeat" : "once", td->name);
 
-               if (raw_len > 2) { /* X.691 #16 NOTE 1 */
+               if ((st->size > 2) || (csiz->lower_bound != csiz->upper_bound)) { /* X.691 #16.11 */
                        if (aper_get_align(pd) < 0)
                                RETURN(RC_FAIL);
                }