]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
use lwres_inet_ntop instead of inet_ntop
authorMark Andrews <marka@isc.org>
Thu, 8 Aug 2002 21:29:07 +0000 (21:29 +0000)
committerMark Andrews <marka@isc.org>
Thu, 8 Aug 2002 21:29:07 +0000 (21:29 +0000)
lib/lwres/getipnode.c

index 6b4413ddb09f6e33b286a5b24b3c860549592be2..f4def6a8859407d26e9f11e1eb24c81c9af88716 100644 (file)
@@ -15,7 +15,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: getipnode.c,v 1.30.2.2 2002/08/06 06:09:07 marka Exp $ */
+/* $Id: getipnode.c,v 1.30.2.3 2002/08/08 21:29:07 marka Exp $ */
 
 #include <config.h>
 
@@ -146,9 +146,10 @@ lwres_getipnodebyname(const char *name, int af, int flags, int *error_num) {
                u.const_name = name;
                if (v4 == 1 && af == AF_INET6) {
                        strcpy(mappedname, "::ffff:");
-                       inet_ntop(AF_INET, (char *)&in4,
-                                 mappedname + sizeof("::ffff:") - 1,
-                                 sizeof(mappedname) - sizeof("::ffff:") + 1);
+                       lwres_net_ntop(AF_INET, (char *)&in4,
+                                      mappedname + sizeof("::ffff:") - 1,
+                                      sizeof(mappedname) - sizeof("::ffff:")
+                                      + 1);
                        he.h_name = mappedname;
                } else
                        he.h_name = u.deconst_name;