From 2c26d43b9898a3b5efb06b34946e7918384c1e55 Mon Sep 17 00:00:00 2001 From: jbj Date: Thu, 20 Feb 2003 17:51:23 +0000 Subject: [PATCH] Sanity. CVS patchset: 6040 CVS date: 2003/02/20 17:51:23 --- rpmio/rpmio.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/rpmio/rpmio.c b/rpmio/rpmio.c index 3ad3771..68a591f 100644 --- a/rpmio/rpmio.c +++ b/rpmio/rpmio.c @@ -753,6 +753,14 @@ static int getHostAddress(const char * host, /*@out@*/ struct in_addr * address) /*@globals errno @*/ /*@modifies *address, errno @*/ { +#if 0 /* XXX workaround nss_foo module hand-off using valgrind. */ + if (!strcmp(host, "localhost")) { + /*@-unrecog -moduncon @*/ + if (!inet_aton("127.0.0.1", address)) + return FTPERR_BAD_HOST_ADDR; + /*@=unrecog =moduncon @*/ + } else +#endif if (xisdigit(host[0])) { /*@-unrecog -moduncon @*/ if (!inet_aton(host, address)) -- 2.7.4