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

Collapse All | Expand All

(-)openssh-3.2.2p1/channels.c (-1 / +13 lines)
Lines 2374-2379 Link Here
2374
					continue;
2374
					continue;
2375
				}
2375
				}
2376
			}
2376
			}
2377
#ifdef IPV6_V6ONLY
2378
			if (ai->ai_family == AF_INET6) {
2379
				int on = 1;
2380
				if (setsockopt(sock, IPPROTO_IPV6, IPV6_V6ONLY, &on, sizeof(on)) < 0)
2381
					debug("x11_create_display_inet: setsockopt(IPV6_V6ONLY) failed.");
2382
			}
2383
#endif
2377
			if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) {
2384
			if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) {
2378
				debug("bind port %d: %.100s", port, strerror(errno));
2385
				debug("bind port %d: %.100s", port, strerror(errno));
2379
				close(sock);
2386
				close(sock);
Lines 2392-2398 Link Here
2392
			if (num_socks == NUM_SOCKS)
2399
			if (num_socks == NUM_SOCKS)
2393
				break;
2400
				break;
2394
#else
2401
#else
2395
			break;
2402
			if (x11_use_localhost) {
2403
				if (num_socks == NUM_SOCKS)
2404
					break;
2405
			} else {
2406
				break;
2407
			}
2396
#endif
2408
#endif
2397
		}
2409
		}
2398
		freeaddrinfo(aitop);
2410
		freeaddrinfo(aitop);

Return to bug 164