summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2018-10-15 11:30:38 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2018-10-15 11:30:38 +0000
commitfc1523575892bb86ae428d3b0b8a0ea4d0778bb5 (patch)
tree9c7652ce736b95b79b08f6470d9e278ee0433503 /usr.bin
parent9abbbedf455979d7fa05fd36b2db979115addaca (diff)
struct sockaddr_storage is guaranteed to be large enough, no need to check
the size. OK kn, deraadt
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ssh/sshconnect.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/usr.bin/ssh/sshconnect.c b/usr.bin/ssh/sshconnect.c
index 47b261f74ea..0d3a073f51b 100644
--- a/usr.bin/ssh/sshconnect.c
+++ b/usr.bin/ssh/sshconnect.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sshconnect.c,v 1.305 2018/09/20 03:30:44 djm Exp $ */
+/* $OpenBSD: sshconnect.c,v 1.306 2018/10/15 11:28:50 florian Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -352,10 +352,6 @@ ssh_create_socket(struct addrinfo *ai)
error("getaddrinfo: no addrs");
goto fail;
}
- if (res->ai_addrlen > sizeof(bindaddr)) {
- error("%s: addr doesn't fit", __func__);
- goto fail;
- }
memcpy(&bindaddr, res->ai_addr, res->ai_addrlen);
bindaddrlen = res->ai_addrlen;
} else if (options.bind_interface != NULL) {