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

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

Return to bug 1092