Check ASN1_INTEGER_get for errors.
authorDr. Stephen Henson <steve@openssl.org>
Fri, 5 Jun 2015 13:23:27 +0000 (14:23 +0100)
committerDr. Stephen Henson <steve@openssl.org>
Sat, 6 Jun 2015 12:17:06 +0000 (13:17 +0100)
commit4336de0c6392d98c32bc27717173130d5e7389aa
tree130dad9af433cf54f652f03f9ab9174199d9864c
parentc0cf5b84dd32480965da7ff1e11d11a1ec9c4662
Check ASN1_INTEGER_get for errors.

Check return value when calling ASN1_INTEGER_get to retrieve a certificate
serial number. If an error occurs (which will be caused by the value being
out of range) revert to hex dump of serial number.

Reviewed-by: Rich Salz <rsalz@openssl.org>
crypto/asn1/t_x509.c