summaryrefslogtreecommitdiff
path: root/lib/libssl
diff options
context:
space:
mode:
authorBrent Cook <bcook@cvs.openbsd.org>2014-12-03 21:55:52 +0000
committerBrent Cook <bcook@cvs.openbsd.org>2014-12-03 21:55:52 +0000
commitb606db359b23d8750e367c7cabf9147b15bd4729 (patch)
tree32cf3524ff2c0205b15097d9bdedea5a3e39b11d /lib/libssl
parent38717cfbeb773f344ec839f6a7d912a8de9937bf (diff)
We're not supporting 16-bit Windows, remove cast.
ok jsing@ deraadt@
Diffstat (limited to 'lib/libssl')
-rw-r--r--lib/libssl/src/crypto/bio/b_sock.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libssl/src/crypto/bio/b_sock.c b/lib/libssl/src/crypto/bio/b_sock.c
index 8f3c58fda25..92a62b2c4cf 100644
--- a/lib/libssl/src/crypto/bio/b_sock.c
+++ b/lib/libssl/src/crypto/bio/b_sock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: b_sock.c,v 1.59 2014/11/26 05:37:26 bcook Exp $ */
+/* $OpenBSD: b_sock.c,v 1.60 2014/12/03 21:55:51 bcook Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -94,8 +94,7 @@ BIO_get_host_ip(const char *str, unsigned char *ip)
goto err;
}
- /* cast to short because of win16 winsock definition */
- if ((short)he->h_addrtype != AF_INET) {
+ if (he->h_addrtype != AF_INET) {
BIOerr(BIO_F_BIO_GET_HOST_IP,
BIO_R_GETHOSTBYNAME_ADDR_IS_NOT_AF_INET);
goto err;