boringssl/crypto
Adam Langley c8006be227 Fix X509_parse_from_buffer when failing to parse.
d2i_X509 will free an existing |X509*| on parse failure. Thus
|X509_parse_from_buffer| would double-free the result on error.

Change-Id: If2bca2f1e1895bc426079f6ade4b82008707888d
Reviewed-on: https://boringssl-review.googlesource.com/12635
Reviewed-by: Adam Langley <agl@google.com>
Commit-Queue: Adam Langley <agl@google.com>
CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
2016-12-08 16:20:49 +00:00
..
aes
asn1
base64
bio
bn
buf
bytestring
chacha
cipher
cmac
conf
curve25519
des
dh
digest
dsa
ec
ecdh
ecdsa
engine
err
evp
hkdf
hmac
lhash
md4
md5
modes
newhope
obj
pem
perlasm
pkcs8
poly1305
pool
rand
rc4
rsa
sha
stack
test
x509
x509v3
CMakeLists.txt
constant_time_test.c
cpu-aarch64-linux.c
cpu-arm-linux.c
cpu-arm.c
cpu-intel.c
cpu-ppc64le.c
crypto.c
ex_data.c
internal.h
mem.c
refcount_c11.c
refcount_lock.c
refcount_test.c
thread_none.c
thread_pthread.c
thread_test.c
thread_win.c
thread.c
time_support.c