From 43a9b2904c47795f46004bdb957067c20585640b Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Mon, 9 Apr 2018 15:55:00 +0200 Subject: [PATCH] call getHostname --- pdns/pdns_recursor.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index eb481d2f79..b198ae4d47 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -3195,10 +3195,10 @@ static int serviceMain(int argc, char*argv[]) g_quiet=false; g_dnssecLOG=true; } - char myHostname[MAXHOSTNAMELEN]; - if (gethostname(myHostname, sizeof(myHostname)-1) == 0){ - } else { - g_log<