[openssh-commits] [openssh] 01/01: Revert "ssh: optional bind interface if bind address specified."

git+noreply at mindrot.org git+noreply at mindrot.org
Fri Feb 26 16:46:27 AEDT 2021


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

djm pushed a commit to branch master
in repository openssh.

commit 6248b86074804983e8f7a2058856a516dbfe2924
Author: Damien Miller <djm at mindrot.org>
Date:   Fri Feb 26 16:45:50 2021 +1100

    Revert "ssh: optional bind interface if bind address specified."
    
    This reverts commit 5a878a71a3528c2626aa1d331934fd964782d41c.
    
    Apologies - I accidentally pushed this.
---
 sshconnect.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/sshconnect.c b/sshconnect.c
index 8666bd6e..74f9e767 100644
--- a/sshconnect.c
+++ b/sshconnect.c
@@ -390,12 +390,6 @@ ssh_create_socket(struct addrinfo *ai)
 		}
 		memcpy(&bindaddr, res->ai_addr, res->ai_addrlen);
 		bindaddrlen = res->ai_addrlen;
-
-		/*'-B' option*/
-		if (options.bind_interface != NULL) {
-			if (setsockopt(sock, SOL_SOCKET, SO_BINDTODEVICE, options.bind_interface, strlen(options.bind_interface) + 1))
-				debug("error: setsockopt SO_BINDTODEVICE");
-		}
 	} else if (options.bind_interface != NULL) {
 #ifdef HAVE_IFADDRS_H
 		if ((r = getifaddrs(&ifaddrs)) != 0) {

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


More information about the openssh-commits mailing list