summaryrefslogtreecommitdiffstats
path: root/asn1/asn1c/per_support.c
diff options
context:
space:
mode:
Diffstat (limited to 'asn1/asn1c/per_support.c')
-rw-r--r--asn1/asn1c/per_support.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/asn1/asn1c/per_support.c b/asn1/asn1c/per_support.c
index 0d089f495..47f07bfb0 100644
--- a/asn1/asn1c/per_support.c
+++ b/asn1/asn1c/per_support.c
@@ -394,8 +394,8 @@ per_put_few_bits(asn_per_outp_t *po, uint32_t bits, int obits) {
buf[2] = bits >> 8,
buf[3] = bits;
else {
- per_put_few_bits(po, bits >> (obits - 24), 24);
- per_put_few_bits(po, bits, obits - 24);
+ if(per_put_few_bits(po, bits >> (obits - 24), 24)) return -1;
+ if(per_put_few_bits(po, bits, obits - 24)) return -1;
}
ASN_DEBUG("[PER out %u/%x => %02x buf+%ld]",