View | Details | Raw Unified | Return to bug 1012 | Differences between
and this patch

Collapse All | Expand All

(-)channels.c (-2 / +8 lines)
Lines 2378-2386 channel_request_remote_forwarding(const Link Here
2378
	if (compat20) {
2378
	if (compat20) {
2379
		const char *address_to_bind;
2379
		const char *address_to_bind;
2380
		if (listen_host == NULL)
2380
		if (listen_host == NULL)
2381
			address_to_bind = "localhost";
2381
			if (datafellows & SSH_BUG_RFWD_ADDR)
2382
				address_to_bind = "127.0.0.1";
2383
			else
2384
				address_to_bind = "localhost";
2382
		else if (*listen_host == '\0' || strcmp(listen_host, "*") == 0)
2385
		else if (*listen_host == '\0' || strcmp(listen_host, "*") == 0)
2383
			address_to_bind = "";
2386
			if (datafellows & SSH_BUG_RFWD_ADDR)
2387
				address_to_bind = "0.0.0.0";
2388
			else
2389
				address_to_bind = "";
2384
		else
2390
		else
2385
			address_to_bind = listen_host;
2391
			address_to_bind = listen_host;
2386
2392
(-)compat.c (-1 / +2 lines)
Lines 127-133 compat_datafellows(const char *version) Link Here
127
		{ "2.3.*",		SSH_BUG_DEBUG|SSH_BUG_RSASIGMD5|
127
		{ "2.3.*",		SSH_BUG_DEBUG|SSH_BUG_RSASIGMD5|
128
					SSH_BUG_FIRSTKEX },
128
					SSH_BUG_FIRSTKEX },
129
		{ "2.4",		SSH_OLD_SESSIONID },	/* Van Dyke */
129
		{ "2.4",		SSH_OLD_SESSIONID },	/* Van Dyke */
130
		{ "2.*",		SSH_BUG_DEBUG|SSH_BUG_FIRSTKEX },
130
		{ "2.*",		SSH_BUG_DEBUG|SSH_BUG_FIRSTKEX|
131
					SSH_BUG_RFWD_ADDR },
131
		{ "3.0.*",		SSH_BUG_DEBUG },
132
		{ "3.0.*",		SSH_BUG_DEBUG },
132
		{ "3.0 SecureCRT*",	SSH_OLD_SESSIONID },
133
		{ "3.0 SecureCRT*",	SSH_OLD_SESSIONID },
133
		{ "1.7 SecureFX*",	SSH_OLD_SESSIONID },
134
		{ "1.7 SecureFX*",	SSH_OLD_SESSIONID },
(-)compat.h (+1 lines)
Lines 56-61 Link Here
56
#define SSH_BUG_PROBE		0x00400000
56
#define SSH_BUG_PROBE		0x00400000
57
#define SSH_BUG_FIRSTKEX	0x00800000
57
#define SSH_BUG_FIRSTKEX	0x00800000
58
#define SSH_OLD_FORWARD_ADDR	0x01000000
58
#define SSH_OLD_FORWARD_ADDR	0x01000000
59
#define SSH_BUG_RFWD_ADDR	0x02000000
59
60
60
void     enable_compat13(void);
61
void     enable_compat13(void);
61
void     enable_compat20(void);
62
void     enable_compat20(void);

Return to bug 1012