aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2015-03-06 16:34:12 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2015-03-06 16:34:12 -0800
commitc864c68989f4a594220e0cede848dd49ee5af46b (patch)
tree782b35e1246d471c758e47d73d00bdd2881e7705 /src
parent99217e437f6dda8938af3bc4a645d09cde0a3043 (diff)
parentc8ab69d63eb8234b55348b0902859ab5f0b3c288 (diff)
downloadandroid_external_wpa_supplicant_8-c864c68989f4a594220e0cede848dd49ee5af46b.tar.gz
android_external_wpa_supplicant_8-c864c68989f4a594220e0cede848dd49ee5af46b.tar.bz2
android_external_wpa_supplicant_8-c864c68989f4a594220e0cede848dd49ee5af46b.zip
Merge "HTTP: Fix OCSP error path"
Diffstat (limited to 'src')
-rw-r--r--src/utils/http_curl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/utils/http_curl.c b/src/utils/http_curl.c
index eb79b862..8692f9f8 100644
--- a/src/utils/http_curl.c
+++ b/src/utils/http_curl.c
@@ -1098,8 +1098,7 @@ static int ocsp_resp_cb(SSL *s, void *arg)
sk_X509_free(certs);
certs = NULL;
}
- if (ctx->peer_issuer_issuer) {
- X509 *cert;
+ if (certs && ctx->peer_issuer_issuer) {
cert = X509_dup(ctx->peer_issuer_issuer);
if (cert && !sk_X509_push(certs, cert)) {
tls_show_errors(