View | Details | Raw Unified | Return to bug 2406
Collapse All | Expand All

(-)channels.c.orig (-7 / +12 lines)
Lines 2809-2821 Link Here
2809
	    fwd->listen_host : fwd->connect_host;
2809
	    fwd->listen_host : fwd->connect_host;
2810
	is_client = (type == SSH_CHANNEL_PORT_LISTENER);
2810
	is_client = (type == SSH_CHANNEL_PORT_LISTENER);
2811
2811
2812
	if (host == NULL) {
2812
	if (type == SSH_CHANNEL_PORT_LISTENER &&
2813
		error("No forward host name.");
2813
	    fwd->connect_path)
2814
		return 0;
2814
		host = fwd->connect_path;
2815
	}
2815
	else {
2816
	if (strlen(host) >= NI_MAXHOST) {
2816
		if (host == NULL) {
2817
		error("Forward host name too long.");
2817
			error("No forward host name.");
2818
		return 0;
2818
			return 0;
2819
		}
2820
		if (strlen(host) >= NI_MAXHOST) {
2821
			error("Forward host name too long.");
2822
			return 0;
2823
		}
2819
	}
2824
	}
2820
2825
2821
	/* Determine the bind address, cf. channel_fwd_bind_addr() comment */
2826
	/* Determine the bind address, cf. channel_fwd_bind_addr() comment */

Return to bug 2406