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

(-)openssh-3.8.1p1/sshconnect.c (-1 / +1 lines)
Lines 202-208 Link Here
202
	hints.ai_socktype = ai->ai_socktype;
202
	hints.ai_socktype = ai->ai_socktype;
203
	hints.ai_protocol = ai->ai_protocol;
203
	hints.ai_protocol = ai->ai_protocol;
204
	hints.ai_flags = AI_PASSIVE;
204
	hints.ai_flags = AI_PASSIVE;
205
	gaierr = getaddrinfo(options.bind_address, "0", &hints, &res);
205
	gaierr = getaddrinfo(options.bind_address, NULL, &hints, &res);
206
	if (gaierr) {
206
	if (gaierr) {
207
		error("getaddrinfo: %s: %s", options.bind_address,
207
		error("getaddrinfo: %s: %s", options.bind_address,
208
		    gai_strerror(gaierr));
208
		    gai_strerror(gaierr));
(-)openssh-3.8.1p1/canohost.c (-1 / +1 lines)
Lines 75-81 Link Here
75
	memset(&hints, 0, sizeof(hints));
75
	memset(&hints, 0, sizeof(hints));
76
	hints.ai_socktype = SOCK_DGRAM;	/*dummy*/
76
	hints.ai_socktype = SOCK_DGRAM;	/*dummy*/
77
	hints.ai_flags = AI_NUMERICHOST;
77
	hints.ai_flags = AI_NUMERICHOST;
78
	if (getaddrinfo(name, "0", &hints, &ai) == 0) {
78
	if (getaddrinfo(name, NULL, &hints, &ai) == 0) {
79
		logit("Nasty PTR record \"%s\" is set up for %s, ignoring",
79
		logit("Nasty PTR record \"%s\" is set up for %s, ignoring",
80
		    name, ntop);
80
		    name, ntop);
81
		freeaddrinfo(ai);
81
		freeaddrinfo(ai);

Return to bug 859