Check for error return from ASN1_object_size
authorMatt Caswell <matt@openssl.org>
Mon, 22 Aug 2016 22:39:28 +0000 (23:39 +0100)
committerMatt Caswell <matt@openssl.org>
Mon, 22 Aug 2016 23:19:15 +0000 (00:19 +0100)
commitb197257d71694fd52ab61d173f77c8a120d3eead
tree65241f3b1a5d8b34b03281de1cb5b608f7c9cfe2
parent4d94bd362dc297c8496a479d1059ec3192fd8bbe
Check for error return from ASN1_object_size

Otherwise we try to malloc a -1 size.

Reviewed-by: Tim Hudson <tjh@openssl.org>
crypto/ocsp/ocsp_ext.c