From 2fd0cd8b5257e7ae0c0df0651ee62a6ef7c37cc2 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 1 Jul 2009 03:41:30 -0700 Subject: Fix NIS and NIS+ getnetbyaddr backends. The addresses were interpreted as class-based network addresses. --- nis/nss_nisplus/nisplus-network.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nis/nss_nisplus/nisplus-network.c') diff --git a/nis/nss_nisplus/nisplus-network.c b/nis/nss_nisplus/nisplus-network.c index 1cf652f071..902826b62a 100644 --- a/nis/nss_nisplus/nisplus-network.c +++ b/nis/nss_nisplus/nisplus-network.c @@ -433,7 +433,7 @@ _nss_nisplus_getnetbyaddr_r (uint32_t addr, const int type, char buf2[18]; int olderr = errno; - struct in_addr in = inet_makeaddr (addr, 0); + struct in_addr in = { .s_addr = htonl (addr) }; strcpy (buf2, inet_ntoa (in)); size_t b2len = strlen (buf2); -- cgit v1.2.3