summaryrefslogtreecommitdiffstats
path: root/asn1/asn1c/per_support.c
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2016-07-25 05:39:44 -0400
committerSimo Sorce <simo@redhat.com>2016-07-25 05:39:44 -0400
commitbcb35bc4d7b592c577367e2c0fc7a3286a732e44 (patch)
treea65b55f95b8da7b9d405d69f7bfa3d456645f299 /asn1/asn1c/per_support.c
parent826ee6a3fecab88b3d9cd95b4ce52f7befbe3914 (diff)
downloadfreeipa-coverity.tar.gz
freeipa-coverity.tar.xz
freeipa-coverity.zip
Additional coverity fixes.coverity
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 <simo@redhat.com>
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]",