summaryrefslogtreecommitdiffstats
path: root/crypto/bio
diff options
context:
space:
mode:
authorViktor Szakats <commit@vszakats.net>2018-09-11 22:34:00 +0000
committerDr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>2018-09-12 09:18:25 +0200
commitf8e1c190d56c5ec53e3ae5ee72669862460cfc22 (patch)
tree72de981d5ead7a7f323972a3bbad07fedce42995 /crypto/bio
parent6258e244bf702dc981c8ad63ab61133b8bbf2ba3 (diff)
minor fixes for Windows
- fix to use secure URL in generated Windows resources - fix a potentially uninitialized variable - fix an unused variable warning CLA: trivial Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Paul Dale <paul.dale@oracle.com> Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com> (Merged from https://github.com/openssl/openssl/pull/7189)
Diffstat (limited to 'crypto/bio')
-rw-r--r--crypto/bio/b_sock2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/bio/b_sock2.c b/crypto/bio/b_sock2.c
index 823732d64e..5d82ab22dc 100644
--- a/crypto/bio/b_sock2.c
+++ b/crypto/bio/b_sock2.c
@@ -133,7 +133,9 @@ int BIO_connect(int sock, const BIO_ADDR *addr, int options)
*/
int BIO_bind(int sock, const BIO_ADDR *addr, int options)
{
+# ifndef OPENSSL_SYS_WINDOWS
int on = 1;
+# endif
if (sock == -1) {
BIOerr(BIO_F_BIO_BIND, BIO_R_INVALID_SOCKET);