diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2014-06-22 16:47:09 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2014-06-22 16:47:09 +0000 |
commit | 2673fac3e7f84c2960223a3d3d1131768936a946 (patch) | |
tree | 8314513f80d817f2e994d5f404d628bb06352535 /lib | |
parent | 9ef28fc1477d02a6405221e214e5c6226cadfdfd (diff) |
BIO_sock_init() no longer does anything, so stop calling it.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libcrypto/bio/b_sock.c | 11 |
1 files changed, 1 insertions, 10 deletions
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); |