From e075b3692bb2c9507231f0662010fc55c1b506c4 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 2 Nov 2007 10:25:34 -0700 Subject: Fix Solaris by ensuring we use the IPv4 or IPv6 length in any getnameinfo calls. Jeremy (This used to be commit 4d7badb0c44f287034f58d9a412e662c0fbecdc9) --- source3/utils/net_lookup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/utils') diff --git a/source3/utils/net_lookup.c b/source3/utils/net_lookup.c index f7af1f2bb3..5e3551b781 100644 --- a/source3/utils/net_lookup.c +++ b/source3/utils/net_lookup.c @@ -131,7 +131,7 @@ static int net_lookup_ldap(int argc, const char **argv) return -1; } - ret = getnameinfo((struct sockaddr *)&ss, + ret = sys_getnameinfo((struct sockaddr *)&ss, sizeof(struct sockaddr_storage), h_name, sizeof(h_name), NULL, 0, -- cgit