aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilad Arnold <garnold@google.com>2015-08-28 17:07:24 -0700
committerGilad Arnold <garnold@google.com>2015-08-29 21:46:59 -0700
commitf73a0e44adc986e575e9cb8e92a70f406e9d88f9 (patch)
treea17d1f35636241274a99ce377ea15f4804c87c0c
parent6b0a9342d07cce9b66dea2d3230f9bdadb9d44d9 (diff)
downloadtlsdate-f73a0e44adc986e575e9cb8e92a70f406e9d88f9.tar.gz
Do not open a BIO on stdout.
The returned object isn't used anyway. Bug: 22373707 Change-Id: I93fb7ef9c64ab4ffc60eed242264fe375ec55a95
-rw-r--r--src/tlsdate-helper.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/tlsdate-helper.c b/src/tlsdate-helper.c
index b319bf7..9322517 100644
--- a/src/tlsdate-helper.c
+++ b/src/tlsdate-helper.c
@@ -1182,9 +1182,6 @@ run_ssl (uint32_t *time_map, int time_is_an_illusion, int http)
(1 != BIO_set_conn_port(s_bio, port)) )
die ("Failed to initialize connection to `%s:%s'", host, port);
- if (NULL == BIO_new_fp(stdout, BIO_NOCLOSE))
- die ("BIO_new_fp returned error, possibly: %s", strerror(errno));
-
// This should run in seccomp
// eg: prctl(PR_SET_SECCOMP, 1);
if (1 != SSL_connect(ssl))