From: Pieter Lexis Date: Mon, 9 Apr 2018 13:55:00 +0000 (+0200) Subject: call getHostname X-Git-Tag: dnsdist-1.3.1~50^2~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=43a9b2904c47795f46004bdb957067c20585640b;p=thirdparty%2Fpdns.git call getHostname --- 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<