Bugzilla – Attachment 2482 Details for
Bug 2286
Port ignored when re-reading config after canonicalization
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to make ssh_connect_direct use port parameter.
sshconnect.patch (text/plain), 847 bytes, created by
Philip Lewis
on 2014-10-07 09:20:31 AEDT
(
hide
)
Description:
Patch to make ssh_connect_direct use port parameter.
Filename:
MIME Type:
Creator:
Philip Lewis
Created:
2014-10-07 09:20:31 AEDT
Size:
847 bytes
patch
obsolete
>Index: sshconnect.c >=================================================================== >RCS file: /cvs/openssh/sshconnect.c,v >retrieving revision 1.224 >diff -u -r1.224 sshconnect.c >--- sshconnect.c 18 Jul 2014 04:11:26 -0000 1.224 >+++ sshconnect.c 6 Oct 2014 21:40:26 -0000 >@@ -442,9 +442,13 @@ > * sequence until the connection succeeds. > */ > for (ai = aitop; ai; ai = ai->ai_next) { >- if (ai->ai_family != AF_INET && >- ai->ai_family != AF_INET6) >+ if (ai->ai_family == AF_INET) >+ ((struct sockaddr_in *)ai->ai_addr)->sin_port = htons(port); >+ else if (ai->ai_family == AF_INET6) >+ ((struct sockaddr_in6 *)ai->ai_addr)->sin6_port = htons(port); >+ else > continue; >+ > if (getnameinfo(ai->ai_addr, ai->ai_addrlen, > ntop, sizeof(ntop), strport, sizeof(strport), > NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 2286
:
2482
|
2483