summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bio/b_sock.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/bio/b_sock.c')
-rw-r--r--src/lib/libcrypto/bio/b_sock.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/libcrypto/bio/b_sock.c b/src/lib/libcrypto/bio/b_sock.c
index 34e5d9830e..8f3c58fda2 100644
--- a/src/lib/libcrypto/bio/b_sock.c
+++ b/src/lib/libcrypto/bio/b_sock.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: b_sock.c,v 1.58 2014/10/13 02:49:53 bcook Exp $ */ 1/* $OpenBSD: b_sock.c,v 1.59 2014/11/26 05:37:26 bcook Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -318,8 +318,7 @@ again:
318 if (bind_mode == BIO_BIND_REUSEADDR) { 318 if (bind_mode == BIO_BIND_REUSEADDR) {
319 int i = 1; 319 int i = 1;
320 320
321 ret = setsockopt(s, SOL_SOCKET, SO_REUSEADDR, (char *)&i, 321 ret = setsockopt(s, SOL_SOCKET, SO_REUSEADDR, &i, sizeof(i));
322 sizeof(i));
323 bind_mode = BIO_BIND_NORMAL; 322 bind_mode = BIO_BIND_NORMAL;
324 } 323 }
325 if (bind(s, &server.sa, addrlen) == -1) { 324 if (bind(s, &server.sa, addrlen) == -1) {