diff options
-rw-r--r-- | src/lib/libcrypto/bio/b_sock.c | 11 | ||||
-rw-r--r-- | src/lib/libssl/src/crypto/bio/b_sock.c | 11 |
2 files changed, 2 insertions, 20 deletions
diff --git a/src/lib/libcrypto/bio/b_sock.c b/src/lib/libcrypto/bio/b_sock.c index 58d57db281..ec28ba2e82 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.40 2014/06/22 15:38:28 jsing Exp $ */ | 1 | /* $OpenBSD: b_sock.c,v 1.41 2014/06/22 16:47:08 jsing 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 | * |
@@ -87,11 +87,6 @@ BIO_get_host_ip(const char *str, unsigned char *ip) | |||
87 | goto err; | 87 | goto err; |
88 | } | 88 | } |
89 | 89 | ||
90 | /* At this point, we have something that is most probably correct | ||
91 | in some way, so let's init the socket. */ | ||
92 | if (BIO_sock_init() != 1) | ||
93 | return 0; /* don't generate another error code here */ | ||
94 | |||
95 | /* If the string actually contained an IP address, we need not do | 90 | /* If the string actually contained an IP address, we need not do |
96 | anything more */ | 91 | anything more */ |
97 | if (i > 0) | 92 | if (i > 0) |
@@ -208,7 +203,6 @@ BIO_gethostbyname(const char *name) | |||
208 | return gethostbyname(name); | 203 | return gethostbyname(name); |
209 | } | 204 | } |
210 | 205 | ||
211 | |||
212 | int | 206 | int |
213 | BIO_sock_init(void) | 207 | BIO_sock_init(void) |
214 | { | 208 | { |
@@ -286,9 +280,6 @@ BIO_get_accept_socket(char *host, int bind_mode) | |||
286 | unsigned long l; | 280 | unsigned long l; |
287 | int err_num; | 281 | int err_num; |
288 | 282 | ||
289 | if (BIO_sock_init() != 1) | ||
290 | return (-1); | ||
291 | |||
292 | if ((str = BUF_strdup(host)) == NULL) | 283 | if ((str = BUF_strdup(host)) == NULL) |
293 | return (-1); | 284 | return (-1); |
294 | 285 | ||
diff --git a/src/lib/libssl/src/crypto/bio/b_sock.c b/src/lib/libssl/src/crypto/bio/b_sock.c index 58d57db281..ec28ba2e82 100644 --- a/src/lib/libssl/src/crypto/bio/b_sock.c +++ b/src/lib/libssl/src/crypto/bio/b_sock.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: b_sock.c,v 1.40 2014/06/22 15:38:28 jsing Exp $ */ | 1 | /* $OpenBSD: b_sock.c,v 1.41 2014/06/22 16:47:08 jsing 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 | * |
@@ -87,11 +87,6 @@ BIO_get_host_ip(const char *str, unsigned char *ip) | |||
87 | goto err; | 87 | goto err; |
88 | } | 88 | } |
89 | 89 | ||
90 | /* At this point, we have something that is most probably correct | ||
91 | in some way, so let's init the socket. */ | ||
92 | if (BIO_sock_init() != 1) | ||
93 | return 0; /* don't generate another error code here */ | ||
94 | |||
95 | /* If the string actually contained an IP address, we need not do | 90 | /* If the string actually contained an IP address, we need not do |
96 | anything more */ | 91 | anything more */ |
97 | if (i > 0) | 92 | if (i > 0) |
@@ -208,7 +203,6 @@ BIO_gethostbyname(const char *name) | |||
208 | return gethostbyname(name); | 203 | return gethostbyname(name); |
209 | } | 204 | } |
210 | 205 | ||
211 | |||
212 | int | 206 | int |
213 | BIO_sock_init(void) | 207 | BIO_sock_init(void) |
214 | { | 208 | { |
@@ -286,9 +280,6 @@ BIO_get_accept_socket(char *host, int bind_mode) | |||
286 | unsigned long l; | 280 | unsigned long l; |
287 | int err_num; | 281 | int err_num; |
288 | 282 | ||
289 | if (BIO_sock_init() != 1) | ||
290 | return (-1); | ||
291 | |||
292 | if ((str = BUF_strdup(host)) == NULL) | 283 | if ((str = BUF_strdup(host)) == NULL) |
293 | return (-1); | 284 | return (-1); |
294 | 285 | ||