diff options
author | Fedor Indutny <fedor@indutny.com> | 2014-06-05 07:09:35 -0700 |
---|---|---|
committer | Fedor Indutny <fedor@indutny.com> | 2014-06-05 07:11:23 -0700 |
commit | a7dd0e51f326dfcc478cc897033e0cd7de62b65d (patch) | |
tree | 6c24a0058c52178d7f32f7aa91a9f584b8891d9c /deps/openssl/openssl/apps/ocsp.c | |
parent | 715bb7f89f727f0300d68af578450db27c225a10 (diff) | |
download | android-node-v8-a7dd0e51f326dfcc478cc897033e0cd7de62b65d.tar.gz android-node-v8-a7dd0e51f326dfcc478cc897033e0cd7de62b65d.tar.bz2 android-node-v8-a7dd0e51f326dfcc478cc897033e0cd7de62b65d.zip |
deps: update openssl to 1.0.1h
Diffstat (limited to 'deps/openssl/openssl/apps/ocsp.c')
-rw-r--r-- | deps/openssl/openssl/apps/ocsp.c | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/deps/openssl/openssl/apps/ocsp.c b/deps/openssl/openssl/apps/ocsp.c index 83c5a76700..767f12c621 100644 --- a/deps/openssl/openssl/apps/ocsp.c +++ b/deps/openssl/openssl/apps/ocsp.c @@ -127,6 +127,7 @@ int MAIN(int argc, char **argv) ENGINE *e = NULL; char **args; char *host = NULL, *port = NULL, *path = "/"; + char *thost = NULL, *tport = NULL, *tpath = NULL; char *reqin = NULL, *respin = NULL; char *reqout = NULL, *respout = NULL; char *signfile = NULL, *keyfile = NULL; @@ -204,6 +205,12 @@ int MAIN(int argc, char **argv) } else if (!strcmp(*args, "-url")) { + if (thost) + OPENSSL_free(thost); + if (tport) + OPENSSL_free(tport); + if (tpath) + OPENSSL_free(tpath); if (args[1]) { args++; @@ -212,6 +219,9 @@ int MAIN(int argc, char **argv) BIO_printf(bio_err, "Error parsing URL\n"); badarg = 1; } + thost = host; + tport = port; + tpath = path; } else badarg = 1; } @@ -920,12 +930,12 @@ end: sk_X509_pop_free(verify_other, X509_free); sk_CONF_VALUE_pop_free(headers, X509V3_conf_free); - if (use_ssl != -1) - { - OPENSSL_free(host); - OPENSSL_free(port); - OPENSSL_free(path); - } + if (thost) + OPENSSL_free(thost); + if (tport) + OPENSSL_free(tport); + if (tpath) + OPENSSL_free(tpath); OPENSSL_EXIT(ret); } |