(hesiod_init): Use __secure_getenv to get HES_DOMAIN environment variable.
authordrepper <drepper>
Sat, 20 Sep 1997 14:45:06 +0000 (14:45 +0000)
committerdrepper <drepper>
Sat, 20 Sep 1997 14:45:06 +0000 (14:45 +0000)
hesiod/hesiod.c

index 076b6e7..46ae9a9 100644 (file)
@@ -89,7 +89,7 @@ int hesiod_init(void **context)
       if (read_config_file(ctx, configname) >= 0)
        {
          /* The default rhs can be overridden by an environment variable. */
-         p = getenv("HES_DOMAIN");
+         p = __secure_getenv("HES_DOMAIN");
          if (p)
            {
              if (ctx->rhs)