From bcb35bc4d7b592c577367e2c0fc7a3286a732e44 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Mon, 25 Jul 2016 05:39:44 -0400 Subject: Additional coverity fixes. This are manual fixes for patches submitted upstream, and should be picked up once a new asn1c is available. They will be overridden if the code is regenerated before then. Signed-off-by: Simo Sorce --- asn1/asn1c/per_support.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'asn1/asn1c/per_support.c') 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]", -- cgit