]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - resolv/tst-res_hconf_reorder.c
resolv: Do not send queries for non-host-names in nss_dns [BZ #24112]
[thirdparty/glibc.git] / resolv / tst-res_hconf_reorder.c
index 7b2c66c69671a313ad132797d876046bf78694e2..9d759c73a25daf1d1d45d1cb5f00cb9526c5cb0b 100644 (file)
@@ -1,6 +1,6 @@
 /* BZ #17977 _res_hconf_reorder_addrs test.
 
-   Copyright (C) 2015 Free Software Foundation, Inc.
+   Copyright (C) 2015-2019 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -19,6 +19,7 @@
 
 #include <errno.h>
 #include <stdio.h>
+#include <stdlib.h>
 #include <string.h>
 #include <time.h>
 #include <dlfcn.h>
@@ -71,9 +72,6 @@ do_test (void)
   unsigned int i;
   int result = 0;
 
-  /* Enabled code to be tested.  */
-  setenv ("RESOLV_REORDER", "on", 1);
-
   /* turn on realloc slowdown */
   ts.tv_nsec = 100000000;