From 0949246f1f4879282a21590a696d08186b3a7a8a Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 15 Jan 2003 09:54:58 +0000 Subject: [PATCH] (addhstbynamev6): Don't interpret hostname as IPv6 address in debug output. --- nscd/hstcache.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/nscd/hstcache.c b/nscd/hstcache.c index 67f4e50..19a85b9 100644 --- a/nscd/hstcache.c +++ b/nscd/hstcache.c @@ -1,5 +1,5 @@ /* Cache handling for host lookup. - Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. + Copyright (C) 1998-2002, 2003 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper , 1998. @@ -450,12 +450,7 @@ addhstbynamev6 (struct database *db, int fd, request_header *req, bool use_malloc = false; if (__builtin_expect (debug_level > 0, 0)) - { - char buf[INET6_ADDRSTRLEN]; - - dbg_log (_("Haven't found \"%s\" in hosts cache!"), - inet_ntop (AF_INET6, key, buf, sizeof (buf))); - } + dbg_log (_("Haven't found \"%s\" in hosts cache!"), key); if (secure[hstdb]) { -- 2.7.4