Ensure we check i2d_X509 return val
authorMatt Caswell <matt@openssl.org>
Mon, 25 Apr 2016 15:05:55 +0000 (16:05 +0100)
committerMatt Caswell <matt@openssl.org>
Tue, 26 Apr 2016 13:29:54 +0000 (14:29 +0100)
commit446ba8de9af9aa4fa3debc7c76a38f4efed47a62
tree6434077e6c163594ba42ff1302619fd2dfb004f3
parentbaf1a3041501c1d4a484deb095bf82a4864c703a
Ensure we check i2d_X509 return val

The i2d_X509() function can return a negative value on error. Therefore
we should make sure we check it.

Issue reported by Yuan Jochen Kang.

Reviewed-by: Emilia Käsper <emilia@openssl.org>
crypto/x509/x_x509.c
ssl/ssl_cert.c