[openssh-commits] [openssh] 01/02: upstream: struct sockaddr_storage is guaranteed to be large enough,

git+noreply at mindrot.org git+noreply at mindrot.org
Mon Oct 22 10:58:16 AEDT 2018


This is an automated email from the git hooks/post-receive script.

djm pushed a commit to branch master
in repository openssh.

commit 83b3d99d2b47321b7ebb8db6f6ea04f3808bc069
Author: florian at openbsd.org <florian at openbsd.org>
Date:   Mon Oct 15 11:28:50 2018 +0000

    upstream: struct sockaddr_storage is guaranteed to be large enough,
    
    no need to check the size. OK kn, deraadt
    
    OpenBSD-Commit-ID: 0aa56e92eb49c79f495b31a5093109ec5841f439
---
 sshconnect.c | 6 +-----
 1 file changed, 1 insertion(+), 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 at cs.hut.fi>
  * Copyright (c) 1995 Tatu Ylonen <ylo at 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) {

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list