Fix the error handling in i2v_AUTHORITY_KEYID
authorMatt Caswell <matt@openssl.org>
Fri, 20 Aug 2021 14:23:32 +0000 (15:23 +0100)
committerMatt Caswell <matt@openssl.org>
Tue, 24 Aug 2021 13:22:07 +0000 (14:22 +0100)
commit4b8a8bb75229b64d1c7598d845fdc3c7e7d7eee2
tree3f801640804803fc33d6bfd3cef77119d0ba5344
parente20fc2ee4fc90ac1476b3a9b15b37542bfb1af73
Fix the error handling in i2v_AUTHORITY_KEYID

Previously if an error path is entered a leak could result.

Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: David Benjamin <davidben@google.com>
crypto/x509/v3_akid.c
fuzz/corpora/x509/0bf7ea6564ba1096f9760bbd6ed02f25aa0d583c [new file with mode: 0644]