From 2673fac3e7f84c2960223a3d3d1131768936a946 Mon Sep 17 00:00:00 2001 From: Joel Sing Date: Sun, 22 Jun 2014 16:47:09 +0000 Subject: BIO_sock_init() no longer does anything, so stop calling it. --- lib/libcrypto/bio/b_sock.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'lib') diff --git a/lib/libcrypto/bio/b_sock.c b/lib/libcrypto/bio/b_sock.c index 58d57db2817..ec28ba2e82f 100644 --- a/lib/libcrypto/bio/b_sock.c +++ b/lib/libcrypto/bio/b_sock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: b_sock.c,v 1.40 2014/06/22 15:38:28 jsing Exp $ */ +/* $OpenBSD: b_sock.c,v 1.41 2014/06/22 16:47:08 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -87,11 +87,6 @@ BIO_get_host_ip(const char *str, unsigned char *ip) goto err; } - /* At this point, we have something that is most probably correct - in some way, so let's init the socket. */ - if (BIO_sock_init() != 1) - return 0; /* don't generate another error code here */ - /* If the string actually contained an IP address, we need not do anything more */ if (i > 0) @@ -208,7 +203,6 @@ BIO_gethostbyname(const char *name) return gethostbyname(name); } - int BIO_sock_init(void) { @@ -286,9 +280,6 @@ BIO_get_accept_socket(char *host, int bind_mode) unsigned long l; int err_num; - if (BIO_sock_init() != 1) - return (-1); - if ((str = BUF_strdup(host)) == NULL) return (-1); -- cgit v1.2.3