From 4109cb252e5e8c65eb5e305597a9ff7006907bb6 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Thu, 5 Aug 1999 12:23:36 +0000 Subject: [PATCH] (inet_ntop_v4): remember to call ntohl git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6758 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/roken/inet_ntop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/roken/inet_ntop.c b/lib/roken/inet_ntop.c index 32b010b67..3da7b1025 100644 --- a/lib/roken/inet_ntop.c +++ b/lib/roken/inet_ntop.c @@ -70,7 +70,7 @@ inet_ntop_v4 (const void *src, char *dst, size_t size) const char digits[] = "0123456789"; int i; struct in_addr *addr = (struct in_addr *)src; - u_long a = addr->s_addr; + u_long a = ntohl(addr->s_addr); const char *orig_dst = dst; if (size < INET_ADDRSTRLEN) {