Bugzilla – Attachment 2407 Details for
Bug 2200
ssh -W causes "getsockname failed: Bad file descriptor" errors
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Skip get_sock_port call for c->sock==-1
channels-W.diff (text/plain), 633 bytes, created by
Damien Miller
on 2014-02-13 09:02:22 AEDT
(
hide
)
Description:
Skip get_sock_port call for c->sock==-1
Filename:
MIME Type:
Creator:
Damien Miller
Created:
2014-02-13 09:02:22 AEDT
Size:
633 bytes
patch
obsolete
>Index: channels.c >=================================================================== >RCS file: /cvs/src/usr.bin/ssh/channels.c,v >retrieving revision 1.329 >diff -u -p -r1.329 channels.c >--- channels.c 31 Jan 2014 16:39:19 -0000 1.329 >+++ channels.c 12 Feb 2014 22:01:07 -0000 >@@ -1378,7 +1378,7 @@ port_open_helper(Channel *c, char *rtype > int direct; > char buf[1024]; > char *local_ipaddr = get_local_ipaddr(c->sock); >- int local_port = get_sock_port(c->sock, 1); >+ int local_port = c->sock == -1 ? 65536 : get_sock_port(c->sock, 1); > char *remote_ipaddr = get_peer_ipaddr(c->sock); > int remote_port = get_peer_port(c->sock); >
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
Flags:
dtucker
:
ok+
Actions:
View
|
Diff
Attachments on
bug 2200
: 2407