diff options
author | Adam Langley <agl@google.com> | 2015-05-20 03:03:15 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-05-20 03:03:15 +0000 |
commit | 93c9b73d867a7bc5d155666991505f4908859935 (patch) | |
tree | 1325b62ede6bfc77106900a778d733f23050acea | |
parent | 3be1d667368bd869c20e9b1bdc959a70539867cc (diff) | |
parent | 190eb169ed96e72590cae9e6c3258e88c8efc7c0 (diff) | |
download | external_boringssl-93c9b73d867a7bc5d155666991505f4908859935.zip external_boringssl-93c9b73d867a7bc5d155666991505f4908859935.tar.gz external_boringssl-93c9b73d867a7bc5d155666991505f4908859935.tar.bz2 |
am 190eb169: external/boringssl: fix use after free in X509.
* commit '190eb169ed96e72590cae9e6c3258e88c8efc7c0':
external/boringssl: fix use after free in X509.
-rw-r--r-- | src/crypto/x509v3/v3_utl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypto/x509v3/v3_utl.c b/src/crypto/x509v3/v3_utl.c index 27a91ff..d79f0de 100644 --- a/src/crypto/x509v3/v3_utl.c +++ b/src/crypto/x509v3/v3_utl.c @@ -879,9 +879,9 @@ static int do_check_string(ASN1_STRING *a, int cmp_type, equal_fn equal, if (astrlen < 0) return -1; rv = equal(astr, astrlen, (unsigned char *)b, blen, flags); - OPENSSL_free(astr); if (rv > 0 && peername) *peername = BUF_strndup((char *)astr, astrlen); + OPENSSL_free(astr); } return rv; } |