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

Collapse All | Expand All

(-)canohost.c (-3 / +3 lines)
Lines 45-50 get_remote_hostname(int sock, int use_dn Link Here
45
		cleanup_exit(255);
45
		cleanup_exit(255);
46
	}
46
	}
47
47
48
	if (from.ss_family == AF_INET)
49
		check_ip_options(sock, ntop);
50
48
	ipv64_normalise_mapped(&from, &fromlen);
51
	ipv64_normalise_mapped(&from, &fromlen);
49
52
50
	if (from.ss_family == AF_INET6)
53
	if (from.ss_family == AF_INET6)
Lines 53-61 get_remote_hostname(int sock, int use_dn Link Here
53
	if (getnameinfo((struct sockaddr *)&from, fromlen, ntop, sizeof(ntop),
56
	if (getnameinfo((struct sockaddr *)&from, fromlen, ntop, sizeof(ntop),
54
	    NULL, 0, NI_NUMERICHOST) != 0)
57
	    NULL, 0, NI_NUMERICHOST) != 0)
55
		fatal("get_remote_hostname: getnameinfo NI_NUMERICHOST failed");
58
		fatal("get_remote_hostname: getnameinfo NI_NUMERICHOST failed");
56
57
	if (from.ss_family == AF_INET)
58
		check_ip_options(sock, ntop);
59
59
60
	if (!use_dns)
60
	if (!use_dns)
61
		return xstrdup(ntop);
61
		return xstrdup(ntop);

Return to bug 1179