diff options
author | florian@openbsd.org <florian@openbsd.org> | 2018-10-15 11:28:50 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2018-10-22 10:58:06 +1100 |
commit | 83b3d99d2b47321b7ebb8db6f6ea04f3808bc069 (patch) | |
tree | 14e8a2c7473840ad4c84fc532981e71a27c8a3de /sshconnect.c | |
parent | aede1c34243a6f7feae2fb2cb686ade5f9be6f3d (diff) | |
download | openssh-git-83b3d99d2b47321b7ebb8db6f6ea04f3808bc069.tar.gz |
upstream: struct sockaddr_storage is guaranteed to be large enough,
no need to check the size. OK kn, deraadt
OpenBSD-Commit-ID: 0aa56e92eb49c79f495b31a5093109ec5841f439
Diffstat (limited to 'sshconnect.c')
-rw-r--r-- | sshconnect.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sshconnect.c b/sshconnect.c index 6d819279..52c32811 100644 --- a/sshconnect.c +++ b/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 @@ -369,10 +369,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) { |