Bugzilla – Attachment 2636 Details for
Bug 2406
Forwarding local port to remote named sockets fails
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
bug fix from original mail (updated to recent snapshot)
channels.c.patch (text/plain), 752 bytes, created by
Till Riedel
on 2015-06-02 07:28:42 AEST
(
hide
)
Description:
bug fix from original mail (updated to recent snapshot)
Filename:
MIME Type:
Creator:
Till Riedel
Created:
2015-06-02 07:28:42 AEST
Size:
752 bytes
patch
obsolete
>--- channels.c.orig 2015-05-29 10:27:21.000000000 +0200 >+++ channels.c 2015-06-01 23:19:25.166831603 +0200 >@@ -2809,13 +2809,18 @@ > fwd->listen_host : fwd->connect_host; > is_client = (type == SSH_CHANNEL_PORT_LISTENER); > >- if (host == NULL) { >- error("No forward host name."); >- return 0; >- } >- if (strlen(host) >= NI_MAXHOST) { >- error("Forward host name too long."); >- return 0; >+ if (type == SSH_CHANNEL_PORT_LISTENER && >+ fwd->connect_path) >+ host = fwd->connect_path; >+ else { >+ if (host == NULL) { >+ error("No forward host name."); >+ return 0; >+ } >+ if (strlen(host) >= NI_MAXHOST) { >+ error("Forward host name too long."); >+ return 0; >+ } > } > > /* Determine the bind address, cf. channel_fwd_bind_addr() comment */
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 2406
: 2636