Skip to content

Commit fb6080d

Browse files
committed
Fix decoding sample-S1AP-InitialContextSetup.aper problem
Based on Velichkov's suggestion on comment : #185 (comment)
1 parent ddbabf4 commit fb6080d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

skeletons/constr_SEQUENCE.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1541,7 +1541,9 @@ SEQUENCE_decode_aper(const asn_codec_ctx_t *opt_codec_ctx,
15411541
asn_TYPE_member_t *elm = &td->elements[edx];
15421542
void *memb_ptr; /* Pointer to the member */
15431543
void **memb_ptr2; /* Pointer to that pointer */
1544+
#if 0
15441545
int padding;
1546+
#endif
15451547

15461548
if(IN_EXTENSION_GROUP(specs, edx))
15471549
continue;
@@ -1553,7 +1555,7 @@ SEQUENCE_decode_aper(const asn_codec_ctx_t *opt_codec_ctx,
15531555
memb_ptr = (char *)st + elm->memb_offset;
15541556
memb_ptr2 = &memb_ptr;
15551557
}
1556-
1558+
#if 0
15571559
/* Get Padding */
15581560
padding = (8 - (pd->moved % 8)) % 8;
15591561
if(padding > 0)
@@ -1570,7 +1572,7 @@ SEQUENCE_decode_aper(const asn_codec_ctx_t *opt_codec_ctx,
15701572
per_get_few_bits(pd, padding);
15711573
}
15721574
#endif /* dealing with padding */
1573-
1575+
#endif
15741576
/* Deal with optionality */
15751577
if(elm->optional) {
15761578
int present = per_get_few_bits(&opmd, 1);

0 commit comments

Comments
 (0)